Interface RandomNumberEngine

All Superinterfaces:
Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
DefaultRandomEngine, Mt19937

public interface RandomNumberEngine extends ConstJoltPhysicsObject
Interface to a pseudo-random number engine.
  • Method Details

    • nextInt

      int nextInt()
      Return the next integer in the sequence.
      Returns:
      an integer value
    • seed

      void seed(int value)
      Seed the engine with the specified value.
      Parameters:
      value - the value to set