Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: intermix list of items

by davido (Cardinal)
on Oct 10, 2004 at 17:04 UTC ( #398009=note: print w/replies, xml ) Need Help??


in reply to intermix list of items

Since you have the @list of all IP's in your hand at once, wouldn't it be adequate to just perform a Fisher-Yates Shuffle on them?

If the goal is simply to not have sequential IP's, and if instead, random order is sufficient, the Fisher Yates shuffle might work great.


Dave

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2021-04-21 08:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?