Generate 10 numbers from U(0,1)

KPS problem 1.2.1

import numpy as np
print(np.random.uniform(0,1,10))
[ 0.37688209 0.85936181 0.00234982 0.0261656 0.71808934 0.61331278
 0.009889 0.18285651 0.63772415 0.72006898]
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s