@thi.ng/vectors
Version:
Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts
18 lines • 814 B
TypeScript
import type { IRandom } from "@thi.ng/random";
import type { MultiVecOpOOO, VecOpOOO } from "./api.js";
/**
* Sets `v` to random vector, with each component in interval `[n..m)`. If no
* `rnd` instance is given, uses [`SYSTEM`](https://docs.thi.ng/umbrella/random/variables/SYSTEM.html), i.e.
* `Math.random`. Creates new vector if `v` is null.
*
* @remarks
* The non-fixed sized version of this function can ONLY be used if `v` is given
* and initialized to the desired size/length.
*
* @param v -
* @param n - default -1
* @param m - default 1
* @param rnd -
*/
export declare const random: MultiVecOpOOO<number, number, IRandom>, random2: VecOpOOO<number, number, IRandom>, random3: VecOpOOO<number, number, IRandom>, random4: VecOpOOO<number, number, IRandom>;
//# sourceMappingURL=random.d.ts.map