Can I specify a numpy dtype when generating random values?
Can I specify a numpy dtype when generating random values? Question: I’m creating a numpy array of random values and adding them to an existing array containing 32-bit floats. I’d like to generate the random values using the same dtype as the target array, so that I don’t have to convert the dtypes manually. Currently …