pseudo-random number generator
rrand() is a modification of the unix rand generator which will return a floating point value between -1 and +1. It is seeded with srrand(x) where x is any value range 0 to 1.