|
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?
__________________
Mike Betts
Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013
As easy as 355/113...
|