| 1 | # -*- Perl -*- | ||
| 2 | # | ||
| 3 | # a minimal PCG random number generator plus some PCG related routines | ||
| 4 | # | ||
| 5 | # run perldoc(1) on this file for documentation | ||
| 6 | |||
| 7 | package Math::Random::PCG32; | ||
| 8 | |||
| 9 | 2 | our $VERSION = '0.24'; | |
| 10 | |||
| 11 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 2 | ▶ | use Exporter qw(import); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 2 | our @EXPORT_OK = qw(coinflip decay irand irand64 irand_in irand_way | |
| 15 | rand rand_elm rand_from rand_idx roll sample); | ||
| 16 | 2 | require XSLoader; | |
| 17 | 2 | XSLoader::load( 'Math::Random::PCG32', $VERSION ); | |
| 18 | |||
| 19 | 2 | 1; | |
| 20 | __END__ | ||