Skip to content

Commit 1904b74

Browse files
authored
Add files via upload
1 parent 69a8b12 commit 1904b74

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

random-module.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import random
2+
3+
a = random.randint(12, 78)
4+
print(a)
5+
6+
b = random.randint(2, 5)
7+
print(b)
8+
9+
c = random.randrange(12, 78)
10+
print(c)
11+
12+
d = random.randrange(2, 3)
13+
print(d)
14+
15+
e = random.random()
16+
print(e)
17+
18+
f = random.uniform(2, 5)
19+
print(f)
20+
21+
lst = ["Cherry", 56.7, "Kite", 90000, 0.0422, False, True]
22+
g = random.choice(lst)
23+
print(g)
24+
25+
random.shuffle(lst)
26+
print(lst)

0 commit comments

Comments
 (0)