in NumPy by (23.9k points)
How to use of reshape ex.1 starting value is 1 and ending value is 50, print 10 integer random numbers

1 Answer

0 votes
by (23.9k points)
To use of reshape ex.1 starting value is 1 and ending value is 50, print 10 integer random numbers

num = np.random.randint(1,50,10)

print(‘\nprin random numbers 1 to 50 with 10 rand numbers : ‘,num)

Related questions

+1 vote
asked Jul 8, 2021 in NumPy by rajeshsharma (23.9k points)
0 votes
asked May 21, 2019 in Mathematics by sheetalkhandelwal (1.6k points)
+2 votes
asked Jul 4, 2021 in NumPy by sharadyadav1986 (31.7k points)
+1 vote
asked Jul 8, 2021 in NumPy by rajeshsharma (23.9k points)
...