simulation_InteractiveVersion
Class Utility

java.lang.Object
  extended by simulation_InteractiveVersion.Utility

public class Utility
extends java.lang.Object


Method Summary
static int getRandomValue(int min, int max)
          This method returns a displacement value from the range [min,...,max].
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRandomValue

public static int getRandomValue(int min,
                                 int max)
This method returns a displacement value from the range [min,...,max]. For instance, if the values -3, 3 are passed, then a value in the range [-3,3] is returned. If min >= max, the value 0 is returned.

Parameters:
min -
max -
Returns:
as described above