Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道 Activeperl 是否将 Windows 'stdlib' 用于 rand 和 srand 函数?我正在使用 perl 5.16。提前感谢您的回复。
my $s = 4071; my $rnd = sub {return (($s = ($s * 214013 + 2531011) % 2 ** 31) >> 16 )}; foreach(0..51){print $rnd->()," "} print "\n"; srand(4071); foreach(0..51){print rand()*2**15," "} print "\n";
Deal_cards_for_FreeCell#Perl