Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 677 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 677 Bytes

🦕 deno-mtrand

Deno module starter repository.

Usage

import { mtrand } from "https://deno.land/x/mtrand/mod.ts";

const rand = mtrand(0);
for(let i=0; i<10; i++) {
  console.log(`${i} - ${rand.next().value}`)
}

castUint32

cast number to Uint32 parameter number

mtrand

generate number with mt19937 method parameter number

Test

# unit tests
deno ./test.ts

Format code

deno fmt **/*.ts

Resources