Are you trying to get a random #?

Try the math class...
there is a fnc to get a sort of random #... Math.random ();