SudokuFX
Loading...
Searching...
No Matches
fr.softsf.sudokufx.utils.SecureRandomGenerator Class Reference

The SecureRandomGenerator class provides methods to generate random numbers securely using Java's SecureRandom class. More...

+ Collaboration diagram for fr.softsf.sudokufx.utils.SecureRandomGenerator:

Public Member Functions

 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).
 

Private Attributes

final SecureRandom secureRandom
 

Detailed Description

The SecureRandomGenerator class provides methods to generate random numbers securely using Java's SecureRandom class.

Constructor & Destructor Documentation

◆ SecureRandomGenerator()

fr.softsf.sudokufx.utils.SecureRandomGenerator.SecureRandomGenerator ( )

Constructor for the SecureRandomGenerator class.

Initializes an instance of SecureRandom to generate random numbers.

Member Function Documentation

◆ 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
boundThe 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
originThe lower limit (inclusive) for generating the random number.
boundThe upper limit (exclusive) for generating the random number.
Returns
A random integer between origin and bound.

Member Data Documentation

◆ secureRandom

final SecureRandom fr.softsf.sudokufx.utils.SecureRandomGenerator.secureRandom
private

The documentation for this class was generated from the following file: