de.adom.jade.kernel
Class SC

java.lang.Object
  extended by de.adom.jade.kernel.SC

public class SC
extends java.lang.Object

This class is a kind of hack to enhance the readability of the JADE source code: certain specific calls get a bit longish due to the object-oriented structure of JADE. The static helper methods in this class make it easier to access certain common methods by providing static access points that hide the more elaborate dynamic calls.

BTW, SC is an acronym for shortcuts.


Method Summary
static int random(int upper)
          Returns a random number in the given range of 0...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

random

public static final int random(int upper)
Returns a random number in the given range of 0...upper-1.

Parameters:
upper - the upper limit of the random number; a number in the range of 0...upper-1 will be created