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 class QRandomGenerator
- Since:
- This class was introduced in Qt 5.10.
-
Constructor Summary
ConstructorsConstructorDescriptionOverloaded constructor forQRandomGenerator(int)withseedValue = 1.QRandomGenerator(int seedValue) QRandomGenerator(int ... sseq) QRandomGenerator(QRandomGenerator other) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidassign(int other) Overloaded function forassign(io.qt.core.QRandomGenerator).final voidassign(QRandomGenerator other) SeeQRandomGenerator::operator=(QRandomGenerator) final doublebounded(double highest) final intbounded(int highest) final intbounded(int lowest, int highest) clone()Creates and returns a copy of this object.final voiddiscard(long z) final booleanequals(int rng2) Overloaded function forequals(io.qt.core.QRandomGenerator).final booleanequals(QRandomGenerator rng2) Seeoperator==(QRandomGenerator,QRandomGenerator) booleanSeeoperator==(QRandomGenerator,QRandomGenerator) final intgenerate()final voidgenerate(int [] array) SeeQRandomGenerator::generate(quint32*, quint32*) final longfinal doublestatic QRandomGeneratorglobal()inthashCode()Returns the objects's hash code computed byqHash(QRandomGenerator).final intinvoke()static intmax()static intmin()static QRandomGeneratorfinal voidseed()Overloaded function forseed(int)withs = 1.final voidseed(int s) final voidseed(int ... sseq) SeeQRandomGenerator::seed(std::initializer_list<uint>) static QRandomGeneratorsystem()Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QRandomGenerator
- Parameters:
other-
-
QRandomGenerator
public QRandomGenerator(int seedValue) - Parameters:
seedValue-
-
QRandomGenerator
public QRandomGenerator(int ... sseq) - Parameters:
sseq-
-
QRandomGenerator
public QRandomGenerator()Overloaded constructor for
QRandomGenerator(int)withseedValue = 1.
-
-
Method Details
-
bounded
- Parameters:
highest-- Returns:
-
bounded
- Parameters:
highest-- Returns:
-
bounded
- Parameters:
lowest-highest-- Returns:
-
discard
- Parameters:
z-
-
generate
- Returns:
-
generate
See
QRandomGenerator::generate(quint32*, quint32*) - Parameters:
array-
-
generate64
- Returns:
-
generateDouble
- Returns:
-
invoke
- Returns:
-
assign
See
QRandomGenerator::operator=(QRandomGenerator) - Parameters:
other-
-
equals
See
operator==(QRandomGenerator,QRandomGenerator) - Parameters:
rng2-- Returns:
-
seed
- Parameters:
s-
-
seed
See
QRandomGenerator::seed(std::initializer_list<uint>) - Parameters:
sseq-
-
global
- Returns:
-
max
public static int max()- Returns:
-
min
public static int min()- Returns:
-
securelySeeded
- Returns:
-
system
- Returns:
-
equals
See
operator==(QRandomGenerator,QRandomGenerator) -
hashCode
Returns the objects's hash code computed byqHash(QRandomGenerator). -
clone
Creates and returns a copy of this object.
-
assign
Overloaded function for
assign(io.qt.core.QRandomGenerator). -
equals
Overloaded function for
equals(io.qt.core.QRandomGenerator). -
seed
Overloaded function for
seed(int)withs = 1.
-