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

Re: Truly randomized keys() in perl 5.17 - a challenge for testing?

by marinersk (Priest)
on Sep 30, 2013 at 10:21 UTC ( [id://1056323]=note: print w/replies, xml ) Need Help??


in reply to Truly randomized keys() in perl 5.17 - a challenge for testing?

sort keys %hash

or

# Generation Code my $newkey = &generateRandomHashKey(); # Store keys as generated in original order push @Keylist, $newkey; $hash{$newkey} = &generateData(); # ... # Testing Code foreach my $testkey (@Keylist) { # Perform test against $hash{$testkey}; }
  • Comment on Re: Truly randomized keys() in perl 5.17 - a challenge for testing?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-25 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found