Register or sign in to start receiving activity updates from around Kongregate!
Complete Initialization for 10 kreds
Congratulations! You’ve completed your Kongregate account!
Keep exploring Kongregate with more badges and games!
Hide the progress bar forever?
Limit my search to this forum
Sign in to reply
produce a random real value x in the range 0.0<=x<8.0
Originally posted by coderTrav:Belongs in the programming section. Check there
Belongs in the programming section. Check there
isn’t that forum for games?
Math.floor(Math.random() * 8) if you want just ints
Get more out of your Kongregate experience. Take advantage of ad-free gaming, cool profile skins, automatic beta access, and private chat with Kong Plus.
Learn more »
Did you know you can now score GameStop PowerUp Rewards® Points on Kongregate?
Find out how »