panthrMath/rgen/rgen.js
function(name) {
         // "name" encapsulates some simple options like precision
         rgen.random = rgen.algorithms[name].random;
         rgen.setSeed = rgen.algorithms[name].setSeed;
         return rgen.setRandomSeed();
      }
function(name) {
         // "name" encapsulates some simple options like precision
         rgen.random = rgen.algorithms[name].random;
         rgen.setSeed = rgen.algorithms[name].setSeed;
         return rgen.setRandomSeed();
      }
function ( name ) { // "name" encapsulates some simple options like precision rgen . random = rgen . algorithms [ name ] . random ; rgen . setSeed = rgen . algorithms [ name ] . setSeed ; return rgen . setRandomSeed ( ) ; }
Sets the algorithm to be used for random number generation.
Expects `name` to be one of the strings returned by `getAlgorithms`.
Sets the algorithm to be used for random number generation . Expects name to be one of the strings returned by getAlgorithms .