Discord
Login
Community
DARK THEME

Quick question: How do make a randomizer with numbers?

I’m working on multiple projects, but one of which I’m working on the most is InfiPlats but I can’t seem to be able to make a randomizer for my hot potato mode. Any suggestions would appreciated.

Thanks,

-Sam

minVal = 1
maxVal = 10
randRangeInt = random.nextInt(maxVal - minVal + 1) + minVal
// Example: an integer between 1 and 10

https://microstudio.dev/community/questions/how-to-set-variable-to-random-number/2013/

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community