Uniformly Distributed Random Function in c?
Trying to implement a function to approximate the value of pi, for which to be accurate I need uniformly distributed random numbers(float). Any hints on how I would go about implementing that?
5 Replies
Like a random number generator?
Yes but no
A uniform random generator generates random numbers where all values in a range have equal probability to get picked
So id get a much more unbiased set of values
![](https://utfs.io/f/dc5d3bc5-1b73-442b-8140-c0773afd7337-1x9z4v.png)
huh......
thats... over my head
try googling it?
No avail
Its complicated to handle for floats
Since floating point numbers have a huge range of precision
Making them all equally likely seems….difficult?