From: Ross Shaw Date: 2001-11-28T21:31:11+09:00 Subject: [ruby-talk:26776] Re: Anyone know of a Regexp pattern random string generator? "Robert Feldt" wrote > Rockit 0.4 can generate random strings fulfilling a grammar. The grammars > can be non-regular so they include regexps. Will be released before > christmas. > So does this mean I could easily create my own Regexp#rand built on Rockit? The sort of thing I want to see is re1 = /\d\d/ re1.rand ==> "42" re1.rand ==> "71" re2 = /ABC\d?\d/ re2.rand ==> "ABC4" re2.rand ==> "ABC39" Regards Ross