Skip to content

Commit 738459b

Browse files
author
puja kumari
committed
randon number size pass through function
1 parent 82aa0f1 commit 738459b

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)