We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › random() and limits
Page Index Toggle Pages: 1
random() and limits (Read 278 times)
random() and limits
Feb 22nd, 2008, 12:28am
 
Will random() ever return the upper and lower limits?  I.e., if I call random(5.0) will I ever get 0.0 or 5.0?
Re: random() and limits
Reply #1 - Feb 22nd, 2008, 1:24am
 
random(5.0) may return 0.0, but will never return 5.0
Re: random() and limits
Reply #2 - Feb 22nd, 2008, 5:39am
 
Thanks
Page Index Toggle Pages: 1