fixed issue with random values being negative