Bugfix for long random strings and more randomness

Bugfix to allow long random strings (> 5*26) and more randomness (string with length=10 must allow 10 times the same chars)

No, quite the opposite, hence this PR. Currently a certain character can only occur at most five times, which is undesirable. Replicating a single character as many times as the requested length fixes this.