
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
mersenne-quick
Advanced tools
MersenneQuick is a fast, efficient JavaScript implementation of the Mersenne Twister pseudo-random number generator (PRNG). It leverages modern JavaScript features such as typed arrays and Math.imul to deliver high-performance random number generation.
Uint32Array) and Math.imul for fast arithmetic.Install via npm:
npm install mersenne-quick
Import the library and create an instance of MersenneQuick:
import MersenneQuick from 'mersenne-quick';
// Create a new generator instance with an optional seed
const mt = new MersenneQuick(12345);
// Generate a random 32-bit unsigned integer
const randomInt = mt.genrand_int32();
console.log('Random Int:', randomInt);
// Generate a random floating point number in the range [0, 1)
const randomFloat = mt.random();
console.log('Random Float:', randomFloat);
new MersenneQuick(seed)
A benchmarking script is included to help you test the performance of MersenneQuick. To run the benchmark:
node benchmark
This script will perform multiple runs and output performance metrics such as throughput and execution time.
Contributions are welcome! If you have ideas for improvements or bug fixes, please open an issue or submit a pull request.
This project is licensed under the MIT License.
FAQs
A high-performance Mersenne Twister implementation for JavaScript.
We found that mersenne-quick demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.