Interface RandomStreams.SeededObjectFactory<T>

  • Type Parameters:
    T - the object type
    Enclosing class:
    RandomStreams

    public static interface RandomStreams.SeededObjectFactory<T>
    A factory for creating objects using a seed and a using a source of randomness.
    Since:
    1.5
    • Method Detail

      • create

        T create​(long seed,
                 UniformRandomProvider source)
        Creates the object.
        Parameters:
        seed - Seed used to initialise the instance.
        source - Source of randomness used to initialise the instance.
        Returns:
        the object