Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

isaacs/node-srand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

srand for node

var srand = require('srand');

// Seed the random
srand.seed(Date.now());

// Mimic JS Math.random
srand.random();

// C rand()
srand.rand();

About

srand bindings for node - Seedable predictable pseudorandom number generator

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •