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?
Was this page helpful?