|more useful options|
Re: RFC: Proofread POD for my main random module, please? (more)by hippo (Chancellor)
|on Jun 01, 2017 at 22:04 UTC||Need Help??|
In your synopsis you have this line:
my $random_thing = random($hash_of_arrays, $list, $options);
but in reading the source it appears that the second argument is expected to be a scalar, not a list. That's confusing.
Also you say several times, "When XXX is selected" but give no clue as to what "selected" means in this context. Again, it is only by reading the source that we can see you mean "passed as a literal value as the second argument to random()".
I think it would help a great deal if in your snippet listing the example random_color() sub you were actually to specify values for the three variables instead of leaving us all to wonder what they might be (or even what form they should take). eg.
Finally, I don't see why instant_rand() is so named. Why not list_item_rand()?