Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^2: My Perl Obfuscator

by ikegami (Patriarch)
on Jan 12, 2024 at 23:20 UTC ( [id://11156935]=note: print w/replies, xml ) Need Help??

in reply to Re: My Perl Obfuscator
in thread My Perl Obfuscator

It's almost the same algorithm. The only difference is that the OP's always picks an item from the complete set, whereas Fisher-Yates picks from the set of unassigned items. I don't know if that affects the fairness of the algorithm. It's easy to see that F-Y is fair, but it's hard to see if the OP's is or not. [Upd: After some experimentation, I believe the OP's algorithm isn't fair, and is thus buggy.]

Replies are listed 'Best First'.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11156935]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-05-28 07:16 GMT
Find Nodes?
    Voting Booth?

    No recent polls found