Skip to main content
Home

Built and signed on GitHub Actions

Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score100%
Downloads2/wk
Published5 months ago (0.1.13)

A simple stateful rng engine

A simple stateful rng engine

import type { createEngine } from '@alator21/super-rng-engine';

const seed = 42;
const engine = createEngine('mulberry32', seed);

const r = engine.next(); // generate a random number between 0 and 1
const state = engine.getState(); // get engine's state(string representation)
Built and signed on
GitHub Actions

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@alator21/super-rng-engine

Import symbol

import * as super_rng_engine from "@alator21/super-rng-engine";
or

Import directly with a jsr specifier

import * as super_rng_engine from "jsr:@alator21/super-rng-engine";

Add Package

pnpm i jsr:@alator21/super-rng-engine
or (using pnpm 10.8 or older)
pnpm dlx jsr add @alator21/super-rng-engine

Import symbol

import * as super_rng_engine from "@alator21/super-rng-engine";

Add Package

yarn add jsr:@alator21/super-rng-engine
or (using Yarn 4.8 or older)
yarn dlx jsr add @alator21/super-rng-engine

Import symbol

import * as super_rng_engine from "@alator21/super-rng-engine";

Add Package

vlt install jsr:@alator21/super-rng-engine

Import symbol

import * as super_rng_engine from "@alator21/super-rng-engine";

Add Package

npx jsr add @alator21/super-rng-engine

Import symbol

import * as super_rng_engine from "@alator21/super-rng-engine";

Add Package

bunx jsr add @alator21/super-rng-engine

Import symbol

import * as super_rng_engine from "@alator21/super-rng-engine";