Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_corelib_global_qrandom.cpp File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

Go to the source code of this file.

Functions

 Q_ASSERT (prng1.generate()==prng2.generate())
 
std::uniform_real_distribution dist (1, 2.5)
 [2]
 
std::seed_seq sseq (seedBuffer, seedBuffer+len)
 [3]
 
std::seed_seq sseq (begin, end)
 [4]
 
 while (z--) generator.generate()
 [5]
 
list resize (16)
 
return generateDouble () *highest
 [11]
 

Variables

quint32 value = QRandomGenerator::global()->generate()
 [0]
 
QRandomGenerator prng1 (1234)
 [0]
 
QRandomGenerator prng2 (1234)
 
int x = QRandomGenerator::global()->generate()
 [1]
 
int y = QRandomGenerator::global()->generate()
 
int w = QRandomGenerator::global()->bounded(16384)
 
int h = QRandomGenerator::global()->bounded(16384)
 
QRandomGenerator generator (sseq)
 
QList< quint32list
 [8]
 
quint32 array [2]
 [9]
 
QRandomGenerator64 rd
 [10]
 
quint32 v = QRandomGenerator::global()->bounded(256)
 [12]
 

Function Documentation

◆ dist()

◆ generateDouble()

return generateDouble ( )

[11]

[12]

Referenced by QQuickParticleExtruder::extrude(), QQuickRectangleExtruder::extrude(), QV4::MathObject::method_random(), and QQuickPointDirection::sample().

+ Here is the caller graph for this function:

◆ Q_ASSERT()

Q_ASSERT ( prng1. generate() = =prng2.generate())

◆ resize()

list resize ( 16 )

◆ sseq() [1/2]

std::seed_seq sseq ( begin ,
end  )

[4]

[5]

◆ sseq() [2/2]

std::seed_seq sseq ( seedBuffer ,
seedBuffer+ len )

[3]

[4]

Referenced by QRandomGenerator::QRandomGenerator(), fallback_fill(), and QRandomGenerator::seed().

+ Here is the caller graph for this function:

◆ while()

while ( z-- )

[5]

[6]

Variable Documentation

◆ array

[9]

[10]

Definition at line 57 of file src_corelib_global_qrandom.cpp.

◆ generator

◆ h

int h = QRandomGenerator::global()->bounded(16384)

Definition at line 19 of file src_corelib_global_qrandom.cpp.

◆ list

QList<quint32> list

[8]

[9]

Definition at line 51 of file src_corelib_global_qrandom.cpp.

◆ prng1

QRandomGenerator prng1(1234) ( 1234 )

[0]

[1]

◆ prng2

QRandomGenerator prng2(1234) ( 1234 )

◆ rd

◆ v

quint32 v = QRandomGenerator::global()->bounded(256)

[12]

[13]

[14]

Definition at line 71 of file src_corelib_global_qrandom.cpp.

◆ value

[0]

[15]

[16]

Definition at line 6 of file src_corelib_global_qrandom.cpp.

◆ w

int w = QRandomGenerator::global()->bounded(16384)

Definition at line 18 of file src_corelib_global_qrandom.cpp.

◆ x

int x = QRandomGenerator::global()->generate()

[1]

[2]

Definition at line 16 of file src_corelib_global_qrandom.cpp.

◆ y

int y = QRandomGenerator::global()->generate()

Definition at line 17 of file src_corelib_global_qrandom.cpp.