fix bug in random integer
fixed allele range error