Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
use strict; # https://rosettacode.org/wiki/Pseudo-random_numbers/Middle-square_method
|
||||
use warnings;
|
||||
|
||||
sub msq
|
||||
{
|
||||
use feature qw( state );
|
||||
state $seed = 675248;
|
||||
$seed = sprintf "%06d", $seed ** 2 / 1000 % 1e6;
|
||||
}
|
||||
|
||||
print msq, "\n" for 1 .. 5;
|
||||
Loading…
Add table
Add a link
Reference in a new issue