Great random number generation for nodejs!
Change log:
-
0.0.4 -- clarify license (BSD)
-
0.0.3 -- fix variable scoping to avoid globals
-
0.0.1 -- initial release
Node.js port of the Mersenne Twister random number generator
Home Page: http://www.enchantedage.com/node-mersenne
License: BSD 3-Clause "New" or "Revised" License
Hi Jon, do you think you could add a LICENSE
to this repo and update the npm
package? I'd love to use this for some work stuff, but policy prevents me from doing so while no license is defined.
Courtesy Links:
https://help.github.com/articles/adding-a-license-to-a-repository/
Would be nice if you could update the npm package!
Thank you for your time.
Best Regards
Philipp
Is the below snippet the default random seed?
gen.init_genrand((new Date).getTime() % 1000000000);
If it is it could be unexpected behavior. Because when executed in parallel the chances of matching initial seeds increases like it did in my app where I executed code in parallel.
My issues were gone when I manually set the seeds with a combination of both a date timestamp and Math.random()
I think the principle of least astonishment here would to make the initial seed collision less likely when running code in parallel such as running selenium browser tests.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.