Socket
Book a DemoInstallSign in
Socket

mrng

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mrng

MRNG (Mathematical Random Number Generator) MRNG is a Node.js module that provides a mathematical approach to generating random numbers

1.2.0
latest
Source
npmnpm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

MRNG-Mathematical-Random-Number-Generator-

MRNG is a Node.js module that provides a mathematical approach to generating random numbers. Unlike traditional random number generators that rely on external factors such as system entropy or external libraries, MRNG uses advanced mathematical calculations to produce random numbers within a specified range.

Features

Enhanced Randomness: Utilizes multiple methods for generating random numbers, including bitwise operations, cryptographic functions, and the random-js library.

Cryptographic Randomness: Incorporates cryptographic randomness using the randombytes module to ensure a high level of unpredictability.

Ease of Use: Provides a simple API for generating random numbers, allowing developers to easily integrate randomness into their applications.

Customizable: Offers flexibility with customizable options for fine-tuning randomness generation according to specific requirements. Usage:

Installation

You can install MRNG via npm:

npm install mrng

Usage

const mrng = require('mrng');

// Generate a random number
const randomNumber = mrng();
console.log(randomNumber); // Output will be a random number

Methods

MRNG offers three main methods for generating random numbers:

  • Bitwise Randomness: Uses bitwise operations for generating randomness based on the current timestamp.
  • Cryptographic Randomness: Utilizes cryptographic randomness provided by the randombytes module for enhanced unpredictability.
  • Random-JS Library: Incorporates randomness from the random-js library to offer a high-quality random number generation solution.

License

The MIT License (MIT).

See the LICENSE file in this project for more details.

Keywords

ramdom

FAQs

Package last updated on 22 Apr 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.