Skip navigation links


com.thortech.xl.util.adapters
Class tcUtilNumberOperations

java.lang.Object
  extended by com.thortech.xl.util.adapters.tcUtilNumberOperations


public class tcUtilNumberOperations
extends java.lang.Object

This class that has basic number operations utility methods. Author: Solomon Niyazov January 10, 2002.


Method Summary
static java.lang.Integer getRandomNumber(int piMax)
          method that returns random number.
static java.lang.Integer getRandomNumber(java.lang.Integer poMax)
          method that returns random number.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getRandomNumber

public static java.lang.Integer getRandomNumber(java.lang.Integer poMax)
                                         throws java.lang.Exception
method that returns random number.
Parameters:
poMax - poMax specifies the maximum range (starting from 0).
Returns:
Integer randomNumber.
Throws:
java.lang.Exception

getRandomNumber

public static java.lang.Integer getRandomNumber(int piMax)
                                         throws java.lang.Exception
method that returns random number.
Parameters:
piMax - piMax specifies the maximum range (starting from 0).
Returns:
Integer randomNumber.
Throws:
java.lang.Exception

Skip navigation links


Copyright © 2014, Oracle and/or its affiliates. All rights reserved.