![]() |
|
The stupid question is the question not asked | |
PerlMonks |
String::Randomby ishmael (Novice) |
on Jun 13, 2001 at 12:08 UTC ( [id://88021]=modulereview: print w/replies, xml ) | Need Help?? |
Item Description: Generate random strings based on a pattern Review Synopsis:
MotivationUntil I saw this module, String::Random I have been using clunky ways to generate random text, always having to lookup ascii codes. This module is an excellent way to generate random strings from a template of possible characters. Instant Random Strings
yields a random four character string: uppercase letter, lowercase, uppercase and then a number. Need a license plate? randpattern("CnCnCn") works for where I live Smarter Random StringsParticularly useful is the ability to define sets of characters and assign them to a pattern
particularly useful for generating names of MUD characters. Random RegexThe module also accepts a regex as input.
My Own Usage
This is one of those small-tool modules that you may find yourself using over and over again. Edit: chipmunk 2001-06-18
|
|