This question already has an answer here:
- 1/N probability 46 answers
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.