Showing 1-20 of 1,902,206 packages
Given an array, pick a random element and return it.
Type-safe utilities to return a random element from an array or random entry from an object
Get random element from array when looping
Generates functions which pick a random element of an array based upon their assigned relative probabilities.
Generate a cryptographically strong random string
Generate random numbers from various distributions.
Pick a random element from an array. Returns null if the array is empty.
Random utility functions for ethers.
Use the random function in CSS
URL and cookie safe UIDs
A small implementation of `crypto.getRandomValues` for React Native. This is useful to polyfill for libraries like [uuid](https://www.npmjs.com/package/uuid) that depend on it.
Generate a random integer
An alias package for `crypto.randomBytes` in Node.js and/or browsers
Gets a random element from an array. Returns undefined for non-arrays. ```js const lolite = require("lolite.sample") console.log(sample(139)) // undefined console.log(typeof sample([1, 2, 3])) // "number" console.log(typeof sample(["h", "g", "r"])) /
A Pulumi package to safely use randomness in Pulumi programs.
TypeScript definitions for d3-random
Fastest random ID and random string generation for Node.js
[Deprecated] Gets a random element from an array
Pseudo-random number generators w/ unified API, distributions, weighted choices, ID generation
Get an available port