warp.sample\_unit\_ring ======================= .. currentmodule:: warp._src.lang .. function:: sample_unit_ring(state: uint32) -> vec2f .. wp-function-tags:: :kernel: true :python: true :differentiable: false Uniformly sample a point on the unit circle (radius 1) in the xy-plane. Returns a ``vec2`` of unit length. In a kernel, advances ``state`` in place; called from the Python scope, it does not modify ``state``, so repeated calls with the same ``state`` return the same point (see :func:`rand_init`).