line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package cli::numbers::random; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
55658
|
use 5.014; |
|
1
|
|
|
|
|
3
|
|
4
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
16
|
|
5
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
44
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
cli::numbers::random - CLIs for generating random numbers. |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 VERSION |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Version 0.01 |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=cut |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = '0.01'; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 SYNOPSIS |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
This modules provides some CLI as follows: |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1. saikoro -- A uniform random number generator |
25
|
|
|
|
|
|
|
2. boxmuller -- A Gaussian random number generator |
26
|
|
|
|
|
|
|
3. cauchydist -- cf. the Cauchy distribution. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
The rest are the online help manuals are only in Japanese. |
29
|
|
|
|
|
|
|
4. poisson -- for the Poisson distribution |
30
|
|
|
|
|
|
|
5. randexp -- for the exponential distribution |
31
|
|
|
|
|
|
|
6. binom -- for binomial distribution. |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
You can refer to how to use them by --help as follows. |
34
|
|
|
|
|
|
|
saikoro --help |
35
|
|
|
|
|
|
|
boxmuller --help |
36
|
|
|
|
|
|
|
or |
37
|
|
|
|
|
|
|
binom --help |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 AUTHOR |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
"Toshiyuki Shimono", C<< >> |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Copyright 2018 "Toshiyuki Shimono". |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify |
51
|
|
|
|
|
|
|
it under the terms of the GNU General Public License as published by |
52
|
|
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or |
53
|
|
|
|
|
|
|
(at your option) any later version. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, |
56
|
|
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
57
|
|
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
58
|
|
|
|
|
|
|
GNU General Public License for more details. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License |
61
|
|
|
|
|
|
|
along with this program. If not, see L. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=cut |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
1; # End of cli::numbers::random |