# Import the NumPy library
import numpy as np

# create a random vector of length 1000000
Z = np.random.rand(1000000) 

# raise each element of Z to the power of 3
Z_cubed = np.multiply(np.multiply(Z, Z), Z) 

# displaying the results of only first five
print(Z_cubed[:5])