Python generate array of random numbers between 0 and 1


Asked by admin @ in Computers and Technology viewed by 319 People


Write a for loop in python that prints 10 random numbers between 1 and 100 inclusive.

Answered by admin @



import random


for x in range(10):

   print(random.randint(1,100))


Similar Questions

5 8 on a number line from 0 to 1

Asked by admin @ in Math viewed by 340 persons

5/8 represent on number line

What is the smallest rational number between 0 and 1

Asked by admin @ in Math viewed by 282 persons

Find four rational numbers between 1 and 0. Please tell the answer!

How to generate 12 random numbers between 01 and 99

Asked by maham237 @ in Mathematics viewed by 312 persons

Use the row of numbers shown below to generate 12 random numbers between 01 and 99. 11097, 51877, 41665, 78465, 79932, 54899, 72970, 71789

0 is a rational number true or false

Asked by admin @ in Math viewed by 310 persons

0 is a rational number True or False? Why?

Program to find greatest of three numbers in python

Asked by admin @ in Computer Science viewed by 350 persons

Write a program in python to find the greatest number among three numbers​

0 is the smallest rational number true or false

Asked by admin @ in Math viewed by 310 persons

0 is the smallest rational number true or false with explanation​

Pseudo code to find minimum among three numbers in python

Asked by admin @ in Computer Science viewed by 379 persons

Pseudocode to find the minimum among three numbers

Rational numbers between and 0

Asked by admin @ in Math viewed by 301 persons

Write four rational numbers between 0 and -2

Even and odd numbers python

Asked by maham237 @ in Computers And Technology viewed by 505 persons

Python Write a program that reads a list of integers, and outputs whether the list contains all even numbers, odd numbers, or neither. The input begins with an integer indicating …

0 is the smallest natural number true or false

Asked by admin @ in Math viewed by 324 persons

The smallest natural number is 0 true or false

Find the sum of odd numbers between 0 and 50

Asked by admin @ in Math viewed by 324 persons

Find sum of all odd numbers between 0 and 50

Square root of a number by newton's method in python

Asked by admin @ in Computers and Technology viewed by 311 persons

Convert Newton’s method for approximating square roots in Project 1 to a recursive function named newton. (Hint: The estimate of the square root should be passed as a second argument …

Python program to print first n numbers divisible by 5

Asked by admin @ in Computer Science viewed by 360 persons

Write a Python program using while loop first N numbers divisible by 5.

List five rational numbers between 2 and 0

Asked by admin @ in Math viewed by 324 persons

List any five rational numbers between -2 and 0

Program to find largest number in an array in 8051

Asked by admin @ in Computer Science viewed by 296 persons

Program to find largest number in an array in 8051

Most viewed questions in Computers And Technology


A customer wants to increase the storage capacity by 25gb

Asked by admin @ in Computers and Technology viewed by 4443 persons


A backup of sewage in the operation's storeroom is considered

Asked by admin @ in Computers and Technology viewed by 1008 persons




Solid yellow line bordering your lane of traffic marks a

Asked by admin @ in Computers and Technology viewed by 620 persons



Which of the following is not a windows utility program

Asked by admin @ in Computers and Technology viewed by 604 persons


When is a wrecker considered to be an emergency vehicle

Asked by admin @ in Computers and Technology viewed by 587 persons


Which operation on a pwc requires more than idle speed

Asked by admin @ in Computers and Technology viewed by 582 persons



Which of the following statements is true of a database

Asked by admin @ in Computers and Technology viewed by 572 persons


Which of the following is not true about an entrepreneur

Asked by admin @ in Computers and Technology viewed by 546 persons


Kitchen gadgets draw a context diagram for the order system

Asked by admin @ in Computers and Technology viewed by 524 persons