Thread: Random?
View Single Post
  #6  
Old 03-02-2011, 08:00 PM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
Quote:
Originally Posted by DustyPorViva View Post
this.chat = int(random(0,100)+.5);

That does look cleaner, but I suggest getting as close to +1 as reasonably possible. with only +0.5, there's a ~0.5 out of 5 chance that it will actually roll he high number. Which is why you should, at the very least, tag +0.99 at the end. add more 9's the more important it is.
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote