updates API for random number generator in a range
Merge pull request #22 from andreiursan/update_rand_rng_syntax

updates API for random number generator in a range