np.random.uniform
numpy.random.uniform(low=0.0, high=1.0, size=None)
np.random.uniform
numpy.random.uniform(low=0.0, high=1.0, size=None)
uniform distribution python example
from random import uniform
array = []
for i in range(10):
array.append(uniform(0.0, 100.0))
print(array)
[40.59813585027852, 68.7703401239061, 26.913790531262215, 2.439230591613828, 76.58211953479649, 42.42738253824879, 78.99082452505225, 42.01341952516737, 30.749439064487294, 79.55554892599972]
# random floating point values with uniform distribution
# (every number has the same chance)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us