Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Bingo Challenge

by CharlesClarkson (Curate)
on May 20, 2002 at 11:16 UTC ( #167804=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Bingo Challenge
in thread Bingo Challenge

Have you benchmarked that to see if it's faster?

No, I used logic. (which is why I said it could be faster.) A shuffling algorithm takes the same time to shuffle on each pass. It's really just randomizing the array indexes. The idiom you were using varies each time through. The less words left, the longer it will take to produce an unchosen word. My thought was, perhaps you were unaware of shuffling or its application here.


HTH,
Charles K. Clarkson
Clarkson Energy Homes, Inc.


Comment on Re: Bingo Challenge

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2014-07-28 14:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (200 votes), past polls