ChanceNumber

OrionVeteran

Deity
Joined
Dec 25, 2003
Messages
2,443
Location
Newport News VA
I have a simple question. I want to run a randum number that must be between than 1 and 7. Can I do the following without the qualifier: if ChanceNumber > 0: ?

Note: A "0" would crash the code in my next function, so the return must be greater than 0.

Code:
ChanceNumber = (CyGame().getSorenRandNum(7,"") > 0)
 
Back
Top Bottom