| 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.23'; |
|
10
|
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
56077
|
use strict; |
|
|
2
|
|
|
|
|
9
|
|
|
|
2
|
|
|
|
|
52
|
|
|
12
|
2
|
|
|
2
|
|
8
|
use warnings; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
41
|
|
|
13
|
2
|
|
|
2
|
|
10
|
use Exporter qw(import); |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
134
|
|
|
14
|
|
|
|
|
|
|
our @EXPORT_OK = qw(coinflip decay irand irand64 irand_in irand_way |
|
15
|
|
|
|
|
|
|
rand rand_elm rand_from rand_idx roll sample); |
|
16
|
|
|
|
|
|
|
require XSLoader; |
|
17
|
|
|
|
|
|
|
XSLoader::load('Math::Random::PCG32', $VERSION); |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
|
20
|
|
|
|
|
|
|
__END__ |