java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QRandomGenerator
- All Implemented Interfaces:
QtObjectInterface
public class QRandomGenerator extends QtObject
Allows one to obtain random values from a high-quality Random Number Generator
Java wrapper for Qt class QRandomGenerator
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QRandomGenerator()
Overloaded constructor forQRandomGenerator(int)
withseedValue = 1
.QRandomGenerator(int seedValue)
protected
QRandomGenerator(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description void
discard(long z)
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.int
generate()
long
generate64()
double
generateDouble()
static QRandomGenerator
global()
static int
max()
static int
min()
static QRandomGenerator
securelySeeded()
void
seed()
Overloaded function forseed(int)
withs = 1
.void
seed(int s)
static QRandomGenerator
system()
-
Constructor Details
-
QRandomGenerator
public QRandomGenerator()Overloaded constructor for
QRandomGenerator(int)
withseedValue = 1
. -
QRandomGenerator
public QRandomGenerator(int seedValue) -
QRandomGenerator
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
discard
-
generate
-
generate64
-
generateDouble
-
seed
Overloaded function for
seed(int)
withs = 1
. -
seed
-
global
-
max
public static int max() -
min
public static int min() -
securelySeeded
-
system
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation.
-