modified randint to y