← Back to challenges

Random Number Generator

PythonHardalgorithmsloopslogicmathnumbers

Instructions

Create a function that produces a random number that contains all numbers from one to five, without any duplicates.

Examples

12345

21345

51234

Notes

N/A

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Rotated Words