Use folly::Random and ensure M_PI is defined