org.encog.mathutil.randomize.factory

## Class BasicRandomFactory

- java.lang.Object
- - org.encog.mathutil.randomize.factory.BasicRandomFactory

- All Implemented Interfaces:
    Serializable, RandomFactory

      public class BasicRandomFactory
      extends Object
      implements RandomFactory, Serializable

  Basic random number generator factory. Simply returns the Random class.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BasicRandomFactory()` Construct a random generator factory.
    `BasicRandomFactory(long theSeed)` Construct a random generator factory with the specified seed.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Random` | `factor()`
    `RandomFactory` | `factorFactory()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BasicRandomFactory

          public BasicRandomFactory()

      Construct a random generator factory. No assigned seed.

    - #### BasicRandomFactory

          public BasicRandomFactory(long theSeed)

      Construct a random generator factory with the specified seed.
      Parameters:
        `theSeed` - The seed.

  - ### Method Detail

    - #### factor

          public Random factor()

      Specified by:
        `factor` in interface `RandomFactory`
      Returns:
        Factor a new random generator.

    - #### factorFactory

          public RandomFactory factorFactory()

      Specified by:
        `factorFactory` in interface `RandomFactory`
      Returns:
        Factor a new random generator factor.

Copyright © 2014. All Rights Reserved.