in reply to My Perl Obfuscator
sub Shuffle { for (my $i = 0; $i < @_; $i++) { my $R = int(rand(@_)); @_[$R, $i] = @_[$i, $R]; } return 0; }
See perldoc -q shuffle for a better shuffle algorithm
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: My Perl Obfuscator
by ikegami (Patriarch) on Jan 12, 2024 at 23:20 UTC |