62 typedef UniformRandomNumberGenerator base_type;
63 typedef Real3 result_type;
65 explicit UniformOnSphere(base_type & rng)
68 typedef typename base_type::result_type base_result;
84 results[i] *= inv_sqrt_sqsum;
86 return Real3(results[0],results[1],results[2]);
90 NormalDistribution<base_type> _rng;