com.metsci.glimpse.util.math.stochastic
Interface Generator


public interface Generator

Author:
osborn

Method Summary
 double nextDouble()
          Returns uniform draw on [0,1).
 int nextInt(int n)
          Returns uniformly drawn integer between 0 (inclusive) and n (exclusive).
 

Method Detail

nextDouble

double nextDouble()
Returns uniform draw on [0,1).


nextInt

int nextInt(int n)
Returns uniformly drawn integer between 0 (inclusive) and n (exclusive).



Copyright © 2012 Metron, Inc.. All Rights Reserved.