warp.sample\_unit\_cube ======================= .. function:: warp._src.lang.sample_unit_cube(state: uint32) -> vec3f .. hlist:: :columns: 8 * Kernel * Python Uniformly sample a point in the unit cube ``[-0.5, 0.5)^3``, centered at the origin. Returns a ``vec3``. 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`).