RandomSequence.java.html

  1  public class RandomSequence implements Sequence
  2  {
  3     public int next()
  4     {
  5        return (int) (Integer.MAX_VALUE * Math.random());
  6     }
  7  }