java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QRandomGenerator
- All Implemented Interfaces:
QtObjectInterface
Allows one to obtain random values from a high-quality Random Number Generator
Java wrapper for Qt class QRandomGenerator
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionOverloaded constructor forQRandomGenerator(int)
withseedValue = 1
.QRandomGenerator
(int seedValue) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
discard
(long z) boolean
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.final int
generate()
final long
final double
static QRandomGenerator
global()
static int
max()
static int
min()
static QRandomGenerator
final void
seed()
Overloaded function forseed(int)
withs = 1
.final void
seed
(int s) static QRandomGenerator
system()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
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.
-