com.sun.msv.generator
Class Rand.UniformRand

java.lang.Object
  extended bycom.sun.msv.generator.Rand.UniformRand
All Implemented Interfaces:
Rand
Enclosing class:
Rand

public static class Rand.UniformRand
extends Object
implements Rand

uniform distribution of [0,x).

Author:
Kohsuke KAWAGUCHI

Nested Class Summary
 
Nested classes inherited from class com.sun.msv.generator.Rand
Rand.UniformRand
 
Constructor Summary
Rand.UniformRand(Random rand, int max)
           
 
Method Summary
 int next()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rand.UniformRand

public Rand.UniformRand(Random rand,
                        int max)
Method Detail

next

public int next()
Specified by:
next in interface Rand