Package net.mst.utilities.mathematical
Class Random
java.lang.Object
net.mst.utilities.mathematical.Random
Picks random values of given collection or range
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Random
public Random()
-
-
Method Details
-
pick
Returns an random integer in a range- Parameters:
Start- The starting point of the rangeEnd- The end point of the range- Returns:
- Integer between two given integer values
-
pick
Returns an random double in a range- Parameters:
Start- The starting point of the rangeEnd- The end point of the range- Returns:
- Double between two given double values
-
pickOf
Returns an random element of a collection- Type Parameters:
T- Type of the objects- Parameters:
Collection- The collection with all values- Returns:
- Random element of collection
-