jtge.util.random
Interface IRandom

All Known Implementing Classes:
Random

public interface IRandom

Version:
$Revision: 1.2 $ $Date: 2005/08/26 18:09:36 $
Author:
Mathieu Champlon

Method Summary
 float nextFloat(float maxVal)
          Returns a float (float) between 0.0 and maxVal-1.
 int nextInt(int maxVal)
          Returns an integer (int) between 0 and maxVal-1.
 

Method Detail

nextInt

public int nextInt(int maxVal)
Returns an integer (int) between 0 and maxVal-1.

Parameters:
maxVal - the upper boundary int number which will be returned by this method
Returns:
int

nextFloat

public float nextFloat(float maxVal)
Returns a float (float) between 0.0 and maxVal-1.

Parameters:
maxVal - the upper boundary float number which will be returned by this method
Returns:
float


Copyright © 2003-2005 . All Rights Reserved.