Answers for "randint range"

6

How to get random int between two numbers python

import random
print(random.randint(10,100))

  this will output somthing between 10 and 100
Posted by: Guest on July-13-2020
1

python random integer in range

import numpy as np
#Generate 15 numbers between 25 and 60
np.random.randint(25,60, size=(15))
Posted by: Guest on September-06-2021
6

python random float

# The random function random() returns a random float between
# zero and one
import random
random.random()
Posted by: Guest on February-28-2020
3

random range python

from random import randrange
print(randrange(10))
Posted by: Guest on July-16-2020

Python Answers by Framework

Browse Popular Code Answers by Language