in reply to Re^2: Random data generation.
in thread Random data generation.
As there are only two of each character in the set which is shuffled ((@chars) x 2), there can of course also only occur two in a row at maximum.
OTOH, this technique doesn't allow more than two of any character in the result (like AACBAFFDCAEC), so it might introduce an unwanted bias... (you didn't explicitly say whether this is desired or not, and it cannot be inferred from your valid samples).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Random data generation.
by BrowserUk (Patriarch) on Jun 26, 2010 at 18:51 UTC | |
by ikegami (Patriarch) on Jun 27, 2010 at 06:22 UTC | |
by BrowserUk (Patriarch) on Jun 28, 2010 at 03:21 UTC |