Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netsaur/src/core/tensor/random.ts>Random

Powerful machine learning, accelerated by WebGPU
Go to Latest
class Random
import { Random } from "https://deno.land/x/netsaur@0.2.2/src/core/tensor/random.ts";

Random class

Static Methods

gaussian(mean: number, standard_deviation?)

returns a random gaussian number

lcg(stateProperty: string)

Linear congruential generator

random(min?: number | number[], max?: number | number[]): number

returns a random number

setSeed(seed: number)

sets the seed for the random number generator