'''
01 - Random float

Randomness has many uses in science, art, statistics, cryptography, gaming, gambling,
and other fields. You're going to use randomness to simulate a game.

All the functionality you need is contained in the random package, a sub-package of numpy.
In this exercise, you'll be using two functions from this package:

seed(): sets the random seed, so that your results are the reproducible between simulations.
As an argument, it takes an integer of your choosing. If you call the function,
no output will be generated.

rand(): if you don't specify any arguments, it generates a random float between zero and one.

Instructions:
 - Import numpy as np.
 
 - Use seed() to set the seed; as an argument, pass 123.
 
 - Generate your first random float with rand() and print it out.
'''

# Import numpy as np
import numpy as np

# Set the seed
np.random.seed(123)

# Generate and print random float
print(np.random.rand())
df9f297cdb087ab99a0f555a6ec2ef84e059c092
<mask token>

<mask token>
np.random.seed(123)
print(np.random.rand())

<mask token>
import numpy as np
np.random.seed(123)
print(np.random.rand())

'''
01 - Random float

Randomness has many uses in science, art, statistics, cryptography, gaming, gambling,
and other fields. You're going to use randomness to simulate a game.

All the functionality you need is contained in the random package, a sub-package of numpy.
In this exercise, you'll be using two functions from this package:

seed(): sets the random seed, so that your results are the reproducible between simulations.
As an argument, it takes an integer of your choosing. If you call the function,
no output will be generated.

rand(): if you don't specify any arguments, it generates a random float between zero and one.

Instructions:
 - Import numpy as np.
 
 - Use seed() to set the seed; as an argument, pass 123.
 
 - Generate your first random float with rand() and print it out.
'''

# Import numpy as np
import numpy as np

# Set the seed
np.random.seed(123)

# Generate and print random float
print(np.random.rand())