same as your code with Math.random() :)

but i fix it a bit