tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 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