(rontolisp) docs
← Functions

linalg:uniform

(linalg:uniform lo hi shape &optional element-type)

Returns an array of uniform draws in [lo, hi) (numpy's np.random.uniform, but with a required shape designator like linalg:zeros; double by default, 'single-float for #f). Each element is lo + (hi - lo) * u for a [0, 1) draw u from the shared generator, so a sequence seeded with linalg:seed is the same on every backend.