Added #turn

This commit is contained in:
raeleus 2024-10-07 21:39:29 -07:00
parent 029c841a8d
commit 599c9c0852
3 changed files with 90 additions and 4 deletions

View file

@ -6,6 +6,11 @@ function getRandomFloat(min, max) {
return Math.random() * (max - min + 1) + min;
}
function getRandomBoolean(chance) {
if (chance == null) chance = .5
return Math.random() <= chance
}
function getRandom(seed) {
var x = Math.sin(seed) * 10000
return x - Math.floor(x)