Skip to main content

Built and signed on GitHub Actions

Typescript implementation of xorshift32.

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
100%
Published
2 months ago (0.1.1)

xorshift32

JSR

Typescript implementation of xorshift32.

Report Bug ยท Request Feature


Installation and Usage

  1. Install deno: https://deno.com
  2. deno add @studiowebux/xorshift32
const prng = initialize_prng(123456);

const integer = generate_integer(prng);
const min_max_interger = generate_min_max_integer(prng, 1, 3); // min is inclusive and max is exclusive
const float = generate_float(prng);

const saved_state = save_prng_state(prng);
load_prng_state(prng, saved_state);

Releases and Github Actions

git tag -a X.Y.Z -m "Version X.Y.Z"
git push origin tags/X.Y.Z

Contributing

  1. Fork the project
  2. Create a Feature Branch
  3. Commit your changes
  4. Push your changes
  5. Create a PR
Working with your local branch

Branch Checkout:

git checkout -b <feature|fix|release|chore|hotfix>/prefix-name

Your branch name must starts with [feature|fix|release|chore|hotfix] and use a / before the name; Use hyphens as separator; The prefix correspond to your Kanban tool id (e.g. abc-123)

Keep your branch synced:

git fetch origin
git rebase origin/master

Commit your changes:

git add .
git commit -m "<feat|ci|test|docs|build|chore|style|refactor|perf|BREAKING CHANGE>: commit message"

Follow this convention commitlint for your commit message structure

Push your changes:

git push origin <feature|fix|release|chore|hotfix>/prefix-name

Examples:

git checkout -b release/v1.15.5
git checkout -b feature/abc-123-something-awesome
git checkout -b hotfix/abc-432-something-bad-to-fix
git commit -m "docs: added awesome documentation"
git commit -m "feat: added new feature"
git commit -m "test: added tests"

License

Distributed under the MIT License. See LICENSE for more information.

Contact

| Buy Me A Coffee | Webux Logo Webux Lab |
Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@studiowebux/xorshift32

Import symbol

import * as xorshift__ from "@studiowebux/xorshift32";

---- OR ----

Import directly with a jsr specifier

import * as xorshift__ from "jsr:@studiowebux/xorshift32";

Add Package

npx jsr add @studiowebux/xorshift32

Import symbol

import * as xorshift__ from "@studiowebux/xorshift32";

Add Package

yarn dlx jsr add @studiowebux/xorshift32

Import symbol

import * as xorshift__ from "@studiowebux/xorshift32";

Add Package

pnpm dlx jsr add @studiowebux/xorshift32

Import symbol

import * as xorshift__ from "@studiowebux/xorshift32";

Add Package

bunx jsr add @studiowebux/xorshift32

Import symbol

import * as xorshift__ from "@studiowebux/xorshift32";