Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: (GOLF) Randomizing lines

by Cirollo (Friar)
on Jul 26, 2001 at 17:56 UTC ( #99975=note: print w/replies, xml ) Need Help??


in reply to (GOLF) Randomizing lines

This doesn't really "randomize" it, becuase one input will result in the same output every time. But, it does shuffle things up. 22 characters.

perl -e'%h=<>;print%h'

Update: D'oh! jmcnamara beat me to the same thing! Great minds think alike ;)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://99975]
help
Chatterbox?
[Eily]: so far it seems to work
Your Mother reminds the monks they should be grateful not to share an office, lest they be subjugated to constant inanities like, "Czech please!"
[LanX]: what's strange is that the "Cowboy you said this already" message is missing #dqiwd
[LanX]: YM: BTW learn to mute your humanity
[Your Mother]: Cumin? Now I want tacos...
[Eily]: there should be an option in grep for fuzzy order of the letters in the pattern
[Eily]: as in "I might have inverted two, but my eyes misread in the some order as my fingers mistype"

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (12)
As of 2017-03-27 16:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.