Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Random Number Generator (no repeat digits 1000-9999)
cookertron
Nov 23rd, 2018
481
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
import
random
a
=
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
]
b
=
random
.
randint
(
1
,
9
)
string
=
''
for
index
in
range
(
4
)
:
string
+
=
str
(
a
[
b
]
)
del
a
[
b
]
b
=
random
.
randint
(
0
,
len
(
a
)
)
print
string
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
1 min ago | 13.98 KB
Untitled
2 hours ago | 12.49 KB
Untitled
4 hours ago | 12.40 KB
programacion_algoritmos_flashcards.tsv
5 hours ago | 2.67 KB
Untitled
6 hours ago | 17.13 KB
Untitled
8 hours ago | 18.40 KB
Untitled
10 hours ago | 17.70 KB
Untitled
12 hours ago | 16.97 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!