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

    You're right. No, it isn't the one. It won't do at all.

      It sounds like you're still looking for a solution. Is there a problem with my solution? If so, let me know so I can fix it.
        Is there a problem with my solution?

        No. I'm just considering all options, not just the first posted.