need to fix random int generator