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.24'; |
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
1151
|
use strict; |
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
55
|
|
12
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
14
|
|
|
2
|
|
|
|
|
57
|
|
13
|
2
|
|
|
2
|
|
10
|
use Exporter qw(import); |
|
2
|
|
|
|
|
13
|
|
|
2
|
|
|
|
|
203
|
|
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__ |