![]() |
Random number generator help
Ok stupid question, but how do I change the range of the random number generator? All I can get is 0-1, I can't find an option to change it.
|
Re: Random number generator help
If you multiply the output by X you get a range of 0 to X.
If you then subtract the result by X/2 you get a range of -X/2 to +X/2. What more could you need? |
| All times are GMT -5. The time now is 10:32. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi