make sure the result will be positive
use get_random_int
Merge branch 'random-fix'