mirror of
https://github.com/cupcakearmy/old.nicco.io.git
synced 2026-04-03 04:15:34 +00:00
migrated to nextjs
This commit is contained in:
6
utils/utils.ts
Normal file
6
utils/utils.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export const Rand = (from: number = 0, to: number = 1, float: boolean = false) => {
|
||||
const rand = (Math.random() * (to - from)) + from
|
||||
return float ? rand : rand | 0
|
||||
}
|
||||
|
||||
export const GoldenRatio: number = (1 + Math.sqrt(5)) / 2
|
||||
Reference in New Issue
Block a user