-4
If you're not familiar, Diceware is a method for creating passwords using an ordinary die from a pair of dice as a hardware random number generator.
For the sake of fun, let's ignore anything about the security of computer's random number generators.
Write a function or program that prints or returns a single five-character string containing a random selection of the numbers 1 through 6. These should be chosen with equal probability.
Example valid outputs:
21321
14654
53552
63641
No standard loopholes! This is code-golf, so shortest code in bytes wins.
Like this? – x13 – 2016-01-07T13:00:59.510
@PeterTaylor - the question you marked this a duplicate of is not even close to the same. Please unmark the question as a duplicate. – Joseph – 2016-01-07T15:25:56.823
2It's replacing an is-zero test with a loop. That's a trivial change, and by the standards of this site qualifies as a duplicate. – Peter Taylor – 2016-01-07T16:25:00.077