Jérôme M. Berger wrote: > Except that the Python version ensures that you don't have the same > digit twice, which just generating a 4 digits random integer won't... I didn't know sample() did that.