[O] Limit Range
This commit is contained in:
+2
-1
@@ -48,7 +48,8 @@
|
|||||||
// Randomize the dir and position
|
// Randomize the dir and position
|
||||||
state = 1
|
state = 1
|
||||||
dir = dirs[Math.floor(Math.random() * dirs.length)]
|
dir = dirs[Math.floor(Math.random() * dirs.length)]
|
||||||
pos = Math.random()
|
// Pos between 0.05 and 0.95
|
||||||
|
pos = Math.random() * 0.9 + 0.05
|
||||||
await divStyles()
|
await divStyles()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user