-
Notifications
You must be signed in to change notification settings - Fork 0
Random
sanya_fritz edited this page Mar 23, 2024
·
1 revision
This class provides methods for generating random numbers of various types.
-
randint(int min, int max): Generates a random integer within the specified range.- Parameters:
- min: The minimum value of the range (inclusive).
- max: The maximum value of the range (inclusive).
- Returns: A random integer in the range from min to max.
- Parameters:
-
randbool(): Generates a random boolean value (true or false).- Returns: A random boolean value.
-
randdouble(double min, double max): Generates a random floating-point number within the specified range.- Parameters:
- min: The minimum value of the range.
- max: The maximum value of the range.
- Returns: A random floating-point number in the range from min to max.
- Parameters: