Enigma 78 Posted October 14, 2010 Report Share Posted October 14, 2010 I'm trying to echo a bunch of random numbers.So i set $rand 1973283319 - 9273812782 and it gives the following error: http://img826.imageshack.us/img826/3039/randerror.png Quote Link to post Share on other sites
MiriamMB 63 Posted October 14, 2010 Report Share Posted October 14, 2010 I'm trying to echo a bunch of random numbers.So i set $rand 1973283319 - 9273812782 and it gives the following error: http://img826.imageshack.us/img826/3039/randerror.png This is a limitation. Stay below 2 billion. Quote Link to post Share on other sites
Seth Turin 223 Posted October 14, 2010 Report Share Posted October 14, 2010 to elaborate a bit, even computers can have a hard time processing extremely large numbers in complex math operations, such as the operation that computers use to generate random numbers. it's possible to make it do larger numbers, but computationally cheaper to keep it how it is. since we've never had anyone bring up a need to have larger numbers, I've left it how it is. is it particularly important that you deal in numbers higher than 2 billion? also, please post threads in the correct section. Quote Link to post Share on other sites
meter 145 Posted October 14, 2010 Report Share Posted October 14, 2010 If you want to generate such a high number I recommend doing a loop that generates random single digits and then appending each generated digit to an output var. Quote Link to post Share on other sites
Enigma 78 Posted October 14, 2010 Author Report Share Posted October 14, 2010 Nevermind fixed. 1 Quote Link to post Share on other sites
UBotBuddy 331 Posted October 14, 2010 Report Share Posted October 14, 2010 Dang meter! I was going to suggest that! Quote Link to post Share on other sites
saleam 0 Posted January 2, 2012 Report Share Posted January 2, 2012 Let me understand this correctly. To generate a random number say between 200 to 1000 I would select $rand 200 - 1000 That simple? Quote Link to post Share on other sites
JohnB 255 Posted January 2, 2012 Report Share Posted January 2, 2012 Yes, it's that simple. http://ubotstudio.com/forum/public/style_emoticons/default/smile.gif John Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.