Billie Dee
New member
The random number will always change. If you don't want your $ans to change - set it to a constant. Random is used when you want different numbers to be randomly chosen.
Dictionary.Com - Statistics. of or characterizing a process of selection in which each item of a set has an equal probability of being chosen.
You're choosing a random number ( think) between 0 and 100). What happens when your $ans = int(rand(100))+1 is 101?
Dictionary.Com - Statistics. of or characterizing a process of selection in which each item of a set has an equal probability of being chosen.
You're choosing a random number ( think) between 0 and 100). What happens when your $ans = int(rand(100))+1 is 101?