sincerely Singaporean

If you have not done so, read this full tutorial on how to use SGEXTN to build an application.

SGXRandomNumberGenerator

see header file

see source file

class SGXRandomNumberGenerator;

part of SGEXTN module SG_Core

random number generation utility

detailed description

list of all including inherited members

implementation details

preprocessor file inclusion directive: #include ‹SGXRandomNumberGenerator.h›

CMake target for BuildLah: SGEXTN::SG_Core

see this link for more information about BuildLah

parent class: (none)

children classes: (none)

static member functions

static double rng0To1();

static unsigned int rngInt32();

static unsigned long long rngInt64();

Detailed Description

SGXRandomNumberGenerator provides evenly distributed floating point numbers between 0 and 1, unsigned ints, and unsigned long longs.

Implementation Details

wrapper of QRandomGenerator

static double rng0To1();

Returns a randomly generated floating point number between 0 to 1, an even distribution is guaranteed.

static unsigned int rngInt32();

Returns a randomly generated unsigned int.

This is effectively a sequence of 32 random bits.

static unsigned long long rngInt64();

Returns a randomly generated unsigned long long.

This is effectively a sequence of 64 random bits.

©2025 05524F.sg (Singapore)

contact 05524F / report a bug / make a suggestion

about 05524F SINGAPORE values

list of 05524F projects