PCG Random Number Generation, C++ Edition
34.46 KB
built 2026-10-16 15:51:06 GMT
Description
This code provides an implementation of the PCG family of random number
generators, which are fast, statistically excellent, and offer a number of
useful features.
Full details can be found at the PCG-Random website
(http://www.pcg-random.org/). This version of the code provides many family
members – if you just want one simple generator, you may prefer the minimal C
version of the library.
There are two kinds of generator, normal generators and extended generators.
Extended generators provide k dimensional equidistribution and can perform
party tricks, but generally speaking most people only need the normal
generators.
There are two ways to access the generators, using a convenience typedef or by
using the underlying templates directly (similar to C++11’s std::mt19937
typedef vs its std::mersenne_twister_engine template). For most users, the
convenience typedef is what you want, and probably you’re fine with pcg32 for
32-bit numbers. If you want 64-bit numbers, either use pcg64 (or, if you’re on
a 32-bit system, making 64 bits from two calls to pcg32_k2 may be faster).
Dependencies
7 totalRequires5
- rpmlib(CaretInVersions) <= 4.15.0-1
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(FileDigests) <= 4.6.0-1
- rpmlib(PayloadFilesHavePrefix) <= 4.0-1
- rpmlib(PayloadIsZstd) <= 5.4.18-1
Provides2
- pcg-cpp-devel = 0.98.1^20220408git428802d-21.fc45
- pcg-cpp-static = 0.98.1^20220408git428802d-21.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
7Name ![]() |
Size |
|---|---|
| /usr/include/pcg_extras.hpp | 19.86 KB |
| /usr/include/pcg_random.hpp | 71.73 KB |
| /usr/include/pcg_uint128.hpp | 27.69 KB |
| /usr/share/licenses/pcg-cpp-devel | 0.00 B |
| /usr/share/licenses/pcg-cpp-devel/LICENSE-APACHE.txt | 11.09 KB |
| /usr/share/licenses/pcg-cpp-devel/LICENSE-MIT.txt | 1.07 KB |
| /usr/share/licenses/pcg-cpp-devel/LICENSE.spdx | 210.00 B |
Files 1–7 of 7
Component of
buildroots that installed this RPMNo Buildroots
