Open source alternatives to Rand
200 open source apps like Rand, closest match first.
Top picks
- G
Genesis
LaunchGenesis is a Go library of generic functions for channels, maps and slices, built for Go 1.18 and newer. It has more than 170 functions, including Filter, Map and Reduce for processing data, plus async versions such as FilterAsync, MapAsync
- R
Randomix
Launch🎲 An open source app to choose randomly between numbers, answers, options and so on
- F
Fastrange
Launchfastrange is a small C and C++ library that maps a machine word to an integer in a range faster than the modulo operator. Mapping a value to a range, such as turning a hash into a bucket number, is a common step in hashing and probabilistic
- P
Primesieve
Launchprimesieve is a command-line program and C/C++ library for generating prime numbers very quickly. It uses the segmented sieve of Eratosthenes with wheel factorization, which runs in O(n log log n) operations and O(sqrt n) memory, plus a buc
- R
Rust Algorithms
LaunchContest Algorithms in Rust is an open-source collection of classic data structures and algorithms written in Rust. It is meant to be read as a cookbook that shows how each algorithm is designed and implemented, rather than as a black-box li
- G
Godot Utils And Other
Launchrandom code that I made/use for godot
More like Rand
About Rand
Rand
Fast, high quality alternative to math/rand and golang.org/x/exp/rand
pgregory.net/rand is a Go random number package that is meant as a faster, higher-quality replacement for math/rand and the experimental golang.org/x/exp/rand. It keeps the API of *rand.Rand and most top-level functions, so existing code can often switch to it with an import change. It removes the top-level Seed function and the Source interface, and makes setup simpler: rand.New() creates a generator seeded from the clock, and rand.New(1) gives a fixed seed. The README includes benchmarks against math/rand, math/rand/v2, golang.org/x/exp/rand and fastrand on Intel and Xeon CPUs, and notes that fastrand does not produce good random numbers. The FAQ explains the author's reasons for writing it and says that math/rand/v2 is the better choice unless every nanosecond counts, in which case this package is still faster without losing quality. It is for Go developers who use random numbers in simulations, tests, games or other hot code paths. It is a library, so you add it to a Go module and import it.
- Price
- Free
- Made by
- flyingmutant
- Category
- Education
- Website
- github.com/flyingmutant/rand