Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
denoland/stdUNSTABLE: Various utilities using random number generators. The package also provides seeded pseudo-random number generator.
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
JSR Score
100%
Published
2 months ago (0.1.0)
Utilities for generating random numbers.
import { randomIntegerBetween } from "@std/random"; import { randomSeeded } from "@std/random"; import { assertEquals } from "@std/assert"; const prng = randomSeeded(1n); assertEquals(randomIntegerBetween(1, 10, { prng }), 3);
Built and signed on
View transparency logGitHub Actions
Add Package
deno add jsr:@std/random
Import symbol
import * as random from "@std/random";
---- OR ----
Import directly with a jsr specifier
import * as random from "jsr:@std/random";
Add Package
npx jsr add @std/random
Import symbol
import * as random from "@std/random";
Add Package
yarn dlx jsr add @std/random
Import symbol
import * as random from "@std/random";
Add Package
pnpm dlx jsr add @std/random
Import symbol
import * as random from "@std/random";
Add Package
bunx jsr add @std/random
Import symbol
import * as random from "@std/random";