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
the magic guy
the magic guy2y ago
Like a random number generator?
mu5h1e
mu5h1e2y ago
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
mu5h1e
mu5h1e2y ago
the magic guy
the magic guy2y ago
huh...... thats... over my head try googling it?
mu5h1e
mu5h1e2y ago
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?
Want results from more Discord servers?
Add your server