Registry / utility / simple-random

simple-random

JSON →
library1.0.5rbrubygemsunverified

Simple Random Number Generator including Beta, Cauchy, Chi square, Exponential, Gamma, Inverse Gamma, Laplace, Normal, Student t, Uniform, and Weibull distributions.

gem install simple-random
INSTALL
IMPORT
SIG · SIMPLE-RANDOM
S
simple-random
utilityrubyv1.0.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SimpleRandom
require 'simple-random'

Create a random number generator and sample from a normal distribution.

require 'simple-random' rng = SimpleRandom.new puts rng.normal(0, 1) # Generate a standard normal random number
Debug
Known issues
gotchaNot cryptographically secure; for simulation only.
fix
Use SecureRandom for security-sensitive applications.
affects: >= 1.0.0
Upgrade
Version history
1.0.5latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
simple-random — gem install simple-random · libregistry