in reply to Random data generation.

I tried it with Test::LectroTest::Generator.
#!/usr/bin/perl use strict; use warnings; use Test::LectroTest::Generator qw(:common :combinators); my $str_gen = String( charset => "a-f", length => [12,] ); for my $string_guidance (1) { my $i = $str_gen->generate($string_guidance); print "$i "; } print "\n";
Update: Trying to get a work-around for the constraint, I kept coming across warnings that the length cannot exceed the number of chars in the set. If I do length => [6,], then the constraint is automatic, and it works.

Replies are listed 'Best First'.
Re^2: Random data generation.
by BrowserUk (Patriarch) on Jun 26, 2010 at 04:19 UTC

    Is that in any way constrained to having no more than two consecutive repeats?