repo
replacements.fyi

// package

math-random

type: "module"

// preferences

// replacements (1)

snippet::math-random

Simple or drop-in replacement

This package is no longer necessary. You can use `Math.random()` or `crypto.getRandomValues` if cryptographic randomness is required.

// example

crypto.getRandomValues(new Uint32Array(1))[0] /
	2 ** 32;
// or
Math.random();