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...
asked
Jul 9, 2021
in
NumPy
by
rajeshsharma
(
23.9k
points)
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
(
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
+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
(
31.7k
points)
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
(
31.7k
points)
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
(
31.7k
points)
print-range
+1
vote
Q: insert 1 to 100 numbers and formated with 10*10
asked
Jul 8, 2021
in
NumPy
by
rajeshsharma
(
23.9k
points)
format-print
+1
vote
Q: print random number from 0 to 1
asked
Jul 8, 2021
in
NumPy
by
rajeshsharma
(
23.9k
points)
print-random-number
+1
vote
Q: Print number from 1 to 10 using arange() function
asked
Jul 9, 2021
in
NumPy
by
rajeshsharma
(
23.9k
points)
print-arange
+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
(
23.9k
points)
generate-array
+1
vote
Q: Print reshape devide into array like 2 array with 5 values
asked
Jul 9, 2021
in
NumPy
by
rajeshsharma
(
23.9k
points)
print-reshape
+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
(
31.7k
points)
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
(
1.6k
points)
#maths
#metal
#mathematics
Mathematics-questions-answers
+2
votes
Q: Print the probabilty arr = [0.23, 0.09, 1.2, 1.24, 9.99] using fix() this example of fuzzy logic or probability
asked
Jul 9, 2021
in
NumPy
by
rajeshsharma
(
23.9k
points)
probability
+2
votes
Q: print row 1 column 1 output will 5
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
(
31.7k
points)
print-row
+1
vote
Q: print value who divide by 2 and remain is 0.
asked
Jul 9, 2021
in
NumPy
by
rajeshsharma
(
23.9k
points)
convert-boolean
+2
votes
Q: What is 1d indexing? define one ex : num = np.array([5,15,25,35])?
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
(
31.7k
points)
1d-indexing
+1
vote
Q: create matrix 2 * 2 with value ranging from 1 to 4
asked
Jul 8, 2021
in
NumPy
by
rajeshsharma
(
23.9k
points)
numpy-matrix
...