- All Implemented Interfaces:
- Serializable
public class OneOf
extends Object
implements Serializable
Represents a random choice from within a set of discrete values.
There are two flavors of each "next" method. One flavor works from
an internal random number generator. The other works from a generator
passed as a parameter. The latter lets us get consistent results based
on the seed of the supplied generator.
- See Also:
- Serialized Form