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
-
Constructor Summary
ConstructorDescriptionOverloaded constructor forQRandomGenerator(int)
withseedValue = 1
.QRandomGenerator
(int seedValue) QRandomGenerator
(int ... sseq) QRandomGenerator
(QRandomGenerator other) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(int other) Overloaded function forassign(io.qt.core.QRandomGenerator)
.final void
assign
(QRandomGenerator other) SeeQRandomGenerator::
operator=(QRandomGenerator) final double
bounded
(double highest) final int
bounded
(int highest) final int
bounded
(int lowest, int highest) final long
bounded
(long highest) final long
bounded
(long lowest, long highest) clone()
Creates and returns a copy of this object.final void
discard
(long z) final boolean
equals
(int rng2) Overloaded function forequals(io.qt.core.QRandomGenerator)
.final boolean
equals
(QRandomGenerator rng2) Seeoperator==(QRandomGenerator,
QRandomGenerator) boolean
Seeoperator==(QRandomGenerator,
QRandomGenerator) final int
generate()
final void
generate
(int [] array) SeeQRandomGenerator::
generate(quint32*, quint32*) final long
final double
static QRandomGenerator
global()
int
hashCode()
Returns the objects's hash code computed byqHash(QRandomGenerator)
.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) SeeQRandomGenerator::
seed(std::initializer_list<uint>) static QRandomGenerator
system()
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:
-
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
.
-