Adds generators to get random numbers in a range

Found in stackoverflow:
* http://stackoverflow.com/questions/1527803/generating-random-numbers-in-javascript-in-a-specific-range
Can have random float or random int