Thread: Random?
View Single Post
  #7  
Old 03-02-2011, 08:01 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Jiroxys7 View Post
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.
You are reading it wrong. It generates a random number then adds .5 to it. With int() this effectively rounds the number up, eliminating the problem.
Reply With Quote