#JS switch doesn't seem to work
21 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Paste version of genesis_announcer.js from @keen bane
use Utils.random.nextInt(0,11) // 0 upto 10
just to see if your math random is not weird
Using the commented code below worked but squoshi proposed switch which I preferred after seeing how it worked
But ye just a moment
it is, returns decimal value from 0-10
no
It worked
it does
it is nextInt not next float
How would I fix it without the Utils.random.nextInt()?
Lat says we should use native java when we can so I just use Utils because it calls java
