Monte Carlo estimation of PI


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11635
Posted: 11:07am 10 Sep 2020      

The STM32 h/w generates a 32-bit random number which is then scaled to a float in the range 0-1. Call RND twice to effectively increase no. of bits