Klasse CustomGenerators
java.lang.Object
ch.framedev.simplejavautils.CustomGenerators
A class that provides utility methods for generating random integers and doubles.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic final classA nested class that generates random doubles within a specified range.static final classA nested class that generates random integers within a specified range. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdoublerandomDouble(double min, double max) Generates a random double within the specified range.intrandomInt(int min, int max) Generates a random integer within the specified range.
-
Konstruktordetails
-
CustomGenerators
public CustomGenerators()
-
-
Methodendetails
-
randomInt
public int randomInt(int min, int max) Generates a random integer within the specified range.- Parameter:
min- the minimum value inclusivemax- the maximum value inclusive- Gibt zurück:
- a random integer within the specified range
-
randomDouble
public double randomDouble(double min, double max) Generates a random double within the specified range.- Parameter:
min- the minimum value inclusivemax- the maximum value inclusive- Gibt zurück:
- a random double within the specified range
-