Class RandomNumberGenerator
- java.lang.Object
-
- org.wso2.carbon.esb.connector.math.utils.RandomNumberGenerator
-
public class RandomNumberGenerator extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgenerateRandomInteger(int origin, int bound)Generates a random integer number in a given range.
-
-
-
Method Detail
-
generateRandomInteger
public static int generateRandomInteger(int origin, int bound) throws InvalidBoundExceptionGenerates a random integer number in a given range.- Parameters:
origin- Lower bound for the random number.bound- Upper bound for the random number.- Returns:
- random integer.
- Throws:
InvalidBoundException
-
-