Solved randomgenerator error