How to generate random number with the specific length in python
Posted
by Arty
on Stack Overflow
See other posts from Stack Overflow
or by Arty
Published on 2010-04-20T07:38:19Z
Indexed on
2010/04/20
7:43 UTC
Read the original article
Hit count: 341
Let say I need a 3 digit number, so it would be something like:
>>> random(3)
563
or
>>> random(5)
26748
>> random(2)
56
© Stack Overflow or respective owner