I am looking at np.empty()
and everywhere it states 'Return a new array of given shape and type, without initializing entries.'
However every time I print np.empty()
I see it already has random values assigned to it. What am I missing here?
A second question: in case np.empty()
uses random values, how is it that the below code always returns the same value?
print(np.empty((3,2)))
[[ 1. 5.4]
[ 9.8 14.2]
[18.6 23. ]]