Re: 1, random; 2, unicode
- From: "nobull67@xxxxxxxxx" <nobull67@xxxxxxxxx>
- Date: 30 Dec 2006 03:23:49 -0800
Paul Lalli wrote:
my $random_key = (keys %hash)[rand(keys %hash)];
my $random_value = $hash{$random_key};
How is that better than..
my $random_value = (values %hash)[rand(keys %hash)];
.
- Follow-Ups:
- Re: 1, random; 2, unicode
- From: Paul Lalli
- Re: 1, random; 2, unicode
- References:
- 1, random; 2, unicode
- From: Adriano Allora
- Re: 1, random; 2, unicode
- From: Paul Lalli
- 1, random; 2, unicode
- Prev by Date: Re: Deleting files remotely
- Next by Date: Re: 1, random; 2, unicode
- Previous by thread: Re: 1, random; 2, unicode
- Next by thread: Re: 1, random; 2, unicode
- Index(es):