Re: [Boost-users] Using Boost.Random with fixed-point numbers

2020-10-03 Thread Steven Watanabe via Boost-users
AMDG On 10/1/20 5:45 PM, John W via Boost-users wrote: > I have a fixed-point number class (based on libfixmath) which in code > largely behaves like a float due to various operator overloading. > > Now, I am trying to generate random numbers with them. > Uniform random is easy enough — just rein

[Boost-users] Using Boost.Random with fixed-point numbers

2020-10-01 Thread John W via Boost-users
I have a fixed-point number class (based on libfixmath) which in code largely behaves like a float due to various operator overloading. Now, I am trying to generate random numbers with them. Uniform random is easy enough — just reinterpret some random bits as my fixedpoint type. However, I'd like