Single quotes
Replaced Math.random() with seeded PRNG for consistency