8000 Merge branch 'develop' of https://github.com/htudu/python_exercise in… · htudu/python_exercise@6e0a8d6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e0a8d6

Browse files
author
hambira
committed
Merge branch 'develop' of https://github.com/htudu/python_exercise into hambira
2 parents 2dd41f7 + 0b90691 commit 6e0a8d6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

puja/random_function_generator.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import random
2+
def random_generator(n):
3+
list_of_random = []
4+
for i in range(n):
5+
x = random.randint(1,100)
6+
list_of_random.append(x)
7+
return list_of_random
8+
9+
xx = random_generator(20)
10+
print(xx)

0 commit comments

Comments
 (0)
0