magpie.randoms.randoms_polar
- magpie.randoms.randoms_polar(size[, r_min=0., r_max=1., phi_min=0., phi_max=2.*np.pi])
Generates randoms for polar coordinates. Default will produce randoms within a unit circle. This can be specified to a ring segment, i.e. with inner radius r_min and outer radius r_max and specifying the angle of the ring segment.
- Parameters
- sizeint
Number of randoms.
- r_minfloat
Minimum r.
- r_maxfloat
Maximum r.
- phi_minfloat
Minimum phi.
- phi_maxfloat
Maximum phi.
- Returns
- rarray
Random radial coordinates.
- phiarray
Random phi coordinates.