Object RandomGenerators

  • All Implemented Interfaces:

    
    public class RandomGenerators
    
                        

    Utilities that extend the functionality of RandomGenerator.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Double nextDouble(RandomGenerator $self, Double from, Double to) Generate a random double between the given bounds.
      final Double randomAngle(RandomGenerator $self) Generates a random value in 0..2π.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • nextDouble

         final Double nextDouble(RandomGenerator $self, Double from, Double to)

        Generate a random double between the given bounds.

        Parameters:
        from -
        the lower bound.
        to -
        the upper bound.
      • randomAngle

         final Double randomAngle(RandomGenerator $self)

        Generates a random value in 0..2π.