Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How to use of reshape ex.1 starting value is 1 and ending value is 50, print 10 integer random numbers
Home
NumPy
How to use of reshape ex.1 starting value is 1 and ending value is 50, print 10 integer random...
+1
vote
asked
Jul 9, 2021
in
NumPy
by
rajeshsharma
How to use of reshape ex.1 starting value is 1 and ending value is 50, print 10 integer random numbers
print-array
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 9, 2021
by
rajeshsharma
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)
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
+2
votes
Q: How to Print Range Between 1 To 100 and show 4 integers random numbers
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
print-array
+2
votes
Q: How to Print Range Between 1 To 15 and show 4 integers random numbers
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
print-range
print-array
+2
votes
Q: How to Print Range Between random number 2 row and 3 cols integers random numbers
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
print-range
+1
vote
Q: print random number from 0 to 1
asked
Jul 8, 2021
in
NumPy
by
rajeshsharma
print-random-number
+1
vote
Q: insert 1 to 100 numbers and formated with 10*10
asked
Jul 8, 2021
in
NumPy
by
rajeshsharma
format-print
+1
vote
Q: Print number from 1 to 10 using arange() function
asked
Jul 9, 2021
in
NumPy
by
rajeshsharma
print-arange
+1
vote
Q: Print reshape devide into array like 2 array with 5 values
asked
Jul 9, 2021
in
NumPy
by
rajeshsharma
print-reshape
+1
vote
Q: use numpy to generate array of 25 random numbers sampled from a standard normal distribution
asked
Jul 8, 2021
in
NumPy
by
rajeshsharma
generate-array
+1
vote
Q: What is 2d indexing? define one ex : num = np.array([1,2,3],[4,5,6],[7,8,9])
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
2d-indexing
0
votes
Q: If 102y = 25, then 10-y equals: (a) -1/5, (b) 1/625, (c) 1/50, (d) 1/25, (e) 1/5
asked
May 21, 2019
in
Mathematics
by
sheetalkhandelwal
#maths
#metal
#mathematics
Mathematics-questions-answers
...