Well 15 is not really small for a random value. I wouldn't like to have 1 chance out of 15 for success.
Actually I wouldn't recommend modulus even for 3 if you really want an "equal opportunity". However, it will be OK for 16 (read thread!) - just one more makes a huge difference ! Michael -----Original Message----- From: Leon Heller [mailto:[EMAIL PROTECTED]] Sent: Thursday, 13 December 2001 12:58 PM To: Palm Developer Forum Subject: RE: Random number from 1 to 15 > >It was a long thread just a month ago regarding the same issue. >It discusses the disadvantages of using % for a random value, >and a proper way to do it. For *small* values, I thought this was the preferred technique. Leon _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
