cad.simcad.utilz.random
Interface RandomGenerator

All Known Implementing Classes:
MTAdapter, MTFAdapter

public interface RandomGenerator

Whoever able to provide a basic random generation functionnality

Version:
1.0
Author:
Charles-Philip Bentley

Method Summary
 int getNextInt()
          Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence.
 int getNextInt(int n)
          Returns an integer drawn uniformly from 0 to n-1.
 

Method Detail

getNextInt

public int getNextInt()
Returns the next pseudorandom, uniformly distributed int value from this random number generator's sequence. The general contract of nextInt is that one int value is pseudorandomly generated and returned. All 232 possible int values are produced with (approximately) equal probability.

Returns:
the next pseudorandom, uniformly distributed int value from this random number generator's sequence.

getNextInt

public int getNextInt(int n)
Returns an integer drawn uniformly from 0 to n-1. Suffice it to say, n must be > 0, or an IllegalArgumentException is raised.


Logo

With the help of www.sourceforge.net and www.info.ucl.ac.be