Merge branch 'bugfix' into develop
Cast RAND_MAX to double for generating float/double random number
Merge branch 'fix/random'