Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Random-numbers/Perl/random-numbers.pl
Normal file
5
Task/Random-numbers/Perl/random-numbers.pl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
my $PI = 2 * atan2 1, 0;
|
||||
|
||||
my @nums = map {
|
||||
1 + 0.5 * sqrt(-2 * log rand) * cos(2 * $PI * rand)
|
||||
} 1..1000;
|
||||
Loading…
Add table
Add a link
Reference in a new issue