The SecureRandomGenerator class provides methods to generate random numbers securely using Java's SecureRandom class.
More...
|
| SecureRandomGenerator () |
| Constructor for the SecureRandomGenerator class.
|
|
final int | nextInt (int bound) |
| Generates a random integer between 0 (inclusive) and the specified bound (exclusive).
|
|
final int | nextInt (int origin, int bound) |
| Generates a random integer between origin (inclusive) and bound (exclusive).
|
|
The SecureRandomGenerator class provides methods to generate random numbers securely using Java's SecureRandom class.
◆ SecureRandomGenerator()
fr.softsf.sudokufx.utils.SecureRandomGenerator.SecureRandomGenerator |
( |
| ) |
|
Constructor for the SecureRandomGenerator class.
Initializes an instance of SecureRandom to generate random numbers.
◆ nextInt() [1/2]
final int fr.softsf.sudokufx.utils.SecureRandomGenerator.nextInt |
( |
int | bound | ) |
|
Generates a random integer between 0 (inclusive) and the specified bound (exclusive).
- Parameters
-
bound | The upper limit (exclusive) for generating the random number. |
- Returns
- A random integer between 0 and bound.
◆ nextInt() [2/2]
final int fr.softsf.sudokufx.utils.SecureRandomGenerator.nextInt |
( |
int | origin, |
|
|
int | bound ) |
Generates a random integer between origin (inclusive) and bound (exclusive).
- Parameters
-
origin | The lower limit (inclusive) for generating the random number. |
bound | The upper limit (exclusive) for generating the random number. |
- Returns
- A random integer between origin and bound.
◆ secureRandom
final SecureRandom fr.softsf.sudokufx.utils.SecureRandomGenerator.secureRandom |
|
private |
The documentation for this class was generated from the following file: