randomness controlled. Samples no longer need to have Math.random replaced