java.lang.Object
io.qt.QtObject
io.qt.core.QRandomGenerator
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Allows one to obtain random values from a high-quality Random Number Generator
Java wrapper for Qt's 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) QRandomGenerator
(int ... sseq) QRandomGenerator
(QRandomGenerator other) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QRandomGenerator other) clone()
final void
discard
(long z) boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.final int
generate()
final void
generate
(int [] array) final long
final double
static QRandomGenerator
global()
int
hashCode()
final int
invoke()
static int
max()
static int
min()
static QRandomGenerator
final void
seed()
Overloaded function forseed(int)
withs = 1
.final void
seed
(int s) final void
seed
(int ... sseq) static QRandomGenerator
system()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QRandomGenerator
-
QRandomGenerator
public QRandomGenerator(int ... sseq) -
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
-
generate
-
generate64
-
generateDouble
-
invoke
-
assign
-
seed
-
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 the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
clone
-