fixed Math.random