this module returns a random string
Generate a random integer
Fastest random ID and random string generation for Node.js
Generate a cryptographically strong random string
URL and cookie safe UIDs
math-random is an isomorphic, drop-in replacement for `Math.random` that uses cryptographically secure random number generation, where available
Generate random numbers with a seed, useful for reproducible tests
Generate a unique random string
Get consecutively unique elements from an array
Return a random character.
Cryptographic key pairs for the XRP Ledger
Return a random integer.
Return a natural number.
Generate a random path name.
Return a random domain.
Return a random email address.
GRC's UHE PRNG in node (Ultra-High Entropy Pseudo-Random Number Generator by Gibson Research Corporation)
RFC9562 UUIDs
The Fisher-Yates (aka Knuth) shuffle for Browser and Node.js
One promise for multiple requests in flight to avoid async duplication
Generate random numbers from various distributions.
random bytes from browserify stand alone
Return a semi-pronounceable random (nonsense) word.
TypeScript definitions for d3-random
Regexp#examples returns a list of "all" strings that are matched by the regex. Regexp#random_example returns one, random string that matches.
Easily generate strings supplying a very simple pattern. '10-20:Xn/x/'.generate #>qBstvc6JN8ra. Generate random strings using a regular expression (Regexp): /[a-z0-9]{2,5}w+/.gen . Also generate words in English or Spanish. Perfect to be used in test data factories. Also, validate if a text fulfills a specific pattern or even generate a string following a pattern and returning the wrong length, value... for testing your applications.
Arnold Schwarzefakker. You can call quote, movie, character, and villain on class Arnold. Returns a random string.
Miscellaneous methods that may or may not be useful. sh:: Safely pass untrusted parameters to sh scripts. Raise an exception if the script returns a non-zero value. fork_and_check:: Run a block in a forked process and raise an exception if the process returns a non-zero value. do_and_exit, do_and_exit!:: Run a block. If the block does not run exit!, a successful exec or equivalent, run exit(1) or exit!(1) ourselves. Useful to make sure a forked block either runs a successful exec or dies. Any exceptions from the block are printed to standard error. overwrite:: Safely replace a file. Writes to a temporary file and then moves it over the old file. tempname_for:: Generates an unique temporary path based on a filename. The generated filename resides in the same directory as the original one. try_n_times:: Retries a block of code until it succeeds or a maximum number of attempts (default 10) is exceeded. Exception#to_formatted_string:: Return a string that looks like how Ruby would dump an uncaught exception. IO#best_datasync:: Try fdatasync, falling back to fsync, falling back to flush. Random#exp:: Return a random integer 0 ≤ n < 2^argument (using SecureRandom). Random#float:: Return a random float 0.0 ≤ n < argument (using SecureRandom). Random#int:: Return a random integer 0 ≤ n < argument (using SecureRandom). Password:: A small wrapper for String#crypt that does secure salt generation and easy password verification.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.