whole_func_string: function (type, options) {
    var self = this;
    self.type = type;
  
    if (!RandomGenerator.Type[type]) {
      throw new Error("Unknown random generator type: " + type);
    }
  
    if (type === RandomGenerator.Type.ALEA) {
      if (!options.seeds) {
        throw new Error("No seeds were provided for Alea PRNG");
      }
      self.alea = Alea.apply(null, options.seeds);
    }
  }
func_code_string: function (type, options) {
    var self = this;
    self.type = type;
  
    if (!RandomGenerator.Type[type]) {
      throw new Error("Unknown random generator type: " + type);
    }
  
    if (type === RandomGenerator.Type.ALEA) {
      if (!options.seeds) {
        throw new Error("No seeds were provided for Alea PRNG");
      }
      self.alea = Alea.apply(null, options.seeds);
    }
  }
func_documentation_string: `type` is one of `RandomGenerator.Type` as defined below.  options: - seeds: (required, only for RandomGenerator.Type.ALEA) an array whose items will be `toString`ed and used as the seed to the Alea algorithm