my @values = values %hash; my $rand_value = $values[rand @values]; [download]
Mark
In reply to Re: Pulling random elements from hash by markjugg in thread Pulling random elements from hash by Anonymous Monk