added a function that returns a random float from 0-1
fixed some parenthesis stuff
merged