dimanche 7 mars 2021

How to generate uniform single precision floating point random number between 0 and 1 in FPGA?

I am trying to generate single precision floating point random number using FPGA by generating number between 0 and 0x3f80000 (IEEE format for 1). But since there are more number of discreet points near to zero than 1, I am not getting uniform generation. Is there any transformation which I can apply to mimic uniform generation. I am using LFSR(32 Bit) and Xoshiro random number generation.




Aucun commentaire:

Enregistrer un commentaire