line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
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
|
|
|
|
|
|
|
our $VERSION = '0.17'; |
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
69600
|
use strict; |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
58
|
|
12
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
63
|
|
13
|
2
|
|
|
2
|
|
10
|
use Exporter qw(import); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
193
|
|
14
|
|
|
|
|
|
|
our @EXPORT_OK = qw(coinflip decay irand irand64 irand_in irand_way |
15
|
|
|
|
|
|
|
rand rand_elm rand_from rand_idx roll); |
16
|
|
|
|
|
|
|
require XSLoader; |
17
|
|
|
|
|
|
|
XSLoader::load('Math::Random::PCG32', $VERSION); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
__END__ |