Random int64 and float64 numbers

前端 未结 5 1164
失恋的感觉
失恋的感觉 2021-02-14 19:07

I\'m trying to generate random 64-bit integer values for integers and floats using Numpy, within the entire range of valid values for that type. To generate ran

5条回答
  •  花落未央
    2021-02-14 19:17

    For integers you could generate 2 32 bit random numbers and combine them:

    a + (b << 32)
    

提交回复
热议问题