TIB: weighted dice


[Prev][Next][Index][Thread]

TIB: weighted dice




Um...
int(rand*sides-2)+int(rand*2+1)+1->die1
isn't the same as
int(rand*sides)+int(rand*2)->die1

It is important to leave those constants inside the parentheses 
because they are being done to the random DECIMAL numbers that are 
created. Once you take them outside the parenthesese you have changed 
the number because it will do the int command FIRST and then subtract 
2. I think. If I'm wrong (and I very well could be) PLEASE correct me!

Jody Snider
jody1@alaska.net


Follow-Ups: