Life & fun · alternatives · 2026
24 alternatives to Fast Random Library for C++17
Morning HN. Random number generation feels is a somewhat underrepresented topic in the C++ realm. There is a lot of questionable info about it found online and even the standard library is quite behind the times in terms of it's algorithms. It suffers from trying to accommodate sometimes impractical standard requirements and has several ways of getting significantly bad statistical results. This leaves a lot easily achievable performance & quality on the table. So, being a mathematician who mostly works with stochastic models and wants these models to run fast and well, I embarked on a…
Fast Random Library for C++17 is a random number generation library that provides modern algorithms for C++ developers. It addresses limitations in the standard library by offering better statistical quality and… Below are 24 products that do a similar job, ranked by how close each is in meaning and then by launch-day votes.
- 1

Hi HN! I've built [CXXStateTree](https://github.com/ZigRazor/CXXStateTree), a modern C++ header-only library to create hierarchical state machines with clean, intuitive APIs. It supports: - Deeply nested states - Entry/exit handlers - State transitions with guards and actions - Asynchronous transitions with `co_await` (C++20 coroutines) - Optional runtime type identification for flexibility It's ideal for complex control logic, embedded systems, games, robotics, and anywhere you'd use a finite state machine. I’d love feedback, use cases, or contributions from the…
2025 · github.com · its alternatives →
- 2MW
I wanted QR codes to be really simple to implement everywhere and for everyone. So I spent some time on my weekends trying to write a fast QR generator module for Apache, and here are the results: ab -n 5000 -c 100 http://lilqr.com/qr Requests per second: 4301.78 [#/sec] (mean)
2011 · lilqr.com · its alternatives →
- 3

Since there is so much interest on HN in floats lately and their software implementations, I wanted to show mine. It has no use and is just for teaching me floats and C++. Give me your thoughts.
2024 · github.com · its alternatives →
- 4

Hello Hacker News. I’m Martin, a graduate student from Prague, and I’ve been working on Coros, a C++ library for task-based parallelism. After spending some time with OpenMP and oneTBB, I wanted to try building a library using modern features from the C++ standard library. I’ve used coroutines for task encapsulation and C++23 expected for exception handling, while trying to maintain good performance. Additionally, I’ve implemented monadic-like behavior to allow easy chaining of tasks, similar to the monadic operations in std::expected. You can check out the project here:…
2024 · github.com · its alternatives →
- 5

LoopMix128 is a fast C PRNG I wrote for non-cryptographic tasks. GitHub (MIT): https://github.com/danielcota/LoopMix128 Highlights: * ~0.37 ns/value (GCC 11.4, -O3 -march=native), 98% faster than xoroshiro128++ and PCG64. * Passes TestU01 BigCrush & PractRand (32TB). * Guaranteed 2^128 period. * Proven injective (192-bit state) via Z3 SMT solver; allows parallel streams. * Core requires only stdint.h. Seeking feedback on design, use cases, or further testing.
2025 · github.com · its alternatives →
- 6

A compact C++ library for easily simulating common Markov processes. - GitHub - NathanEpstein/markov: A compact C++ library for easily simulating common Markov processes.
2015 · github.com · its alternatives →
- 7

⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API - iamkun/dayjs
2018 · github.com · its alternatives →
- 8

Provides a Kotlin/Java library to create a random json string - mangatmodi/RandomJson
2019 · github.com · its alternatives →
- 9

The missing JavaScript randomness library. Contribute to ChrisCavs/aimless.js development by creating an account on GitHub.
2023 · github.com · its alternatives →
- 10

A lightweight single-header pattern-matching library for C++17 with macro-free APIs. Try it at https://godbolt.org/z/8YMr8Kz8j
2022 · github.com · its alternatives →
- 11

SIMD noise library for Rust. Contribute to verpeteren/rust-simd-noise development by creating an account on GitHub.
2018 · github.com · its alternatives →
- 12

Hi HN, Over the past few months, I've been building `dsc`, a tensor library from scratch in C++/CUDA. My main focus has been on getting the basics right, prioritizing a clean API, simplicity, and clear observability for running small LLMs locally. The key features are: - C++ core with CUDA support written from scratch. - A familiar, PyTorch-like Python API. - Runs real models: it's complete enough to load a model like Qwen from HuggingFace and run inference on both CUDA and CPU with a single line change[1]. - Simple, built-in observability for both Python and C++. Next on the roadmap is…
2025 · github.com · its alternatives →
- 13

Morning HN. I often found myself wondering "how much does this code segment take in terms of total runtime" and it's often quite annoying to figure out with optimizations enabled, especially when working on something new or testing someone else's implementation without the proper tooling set up. Wanted to have a single include lib that would allow us to write something like: ``` PROFILE("Loop 1") for (...) // some work ``` and have the next expression automatically record time & dump results to a table. Wrote a few macros to do exactly that a few months back, but they were…
2025 · github.com · its alternatives →
- 14

A fast and memory-optimized string library for C++ - btwael/SuperString
2018 · github.com · its alternatives →
- 15

Simulation of common stochastic processes with native JavaScript - NathanEpstein/stochastic
2014 · github.com · its alternatives →
- 16

The fastest 128-bit and 256-bit hash, passes all tests, and under 140 source lines of code. API library and CLI tool in C++ and NodeJS/Wasm - DOSAYGO-STUDIO/rain
2024 · github.com · its alternatives →
- 17

Simple, easy to use stream computation library for C++.
2016 · raftlib.io · its alternatives →
- 18

Pseudorandom generator written in Go using CPU context switch - maxamel/BitGenGo
2018 · github.com · its alternatives →
- 19

:bird: :game_die: Use Twitter's Search API to get random numbers - GitHub - ryanmcdermott/birdseed: :bird: Use Twitter's Search API to get random numbers
2015 · github.com · its alternatives →
- 20

:game_die: Generate "truly" random numbers (WARNING: NOT RANDOM!!! The "truly" is in sarcasquotes) - jaybosamiya/true-random
2016 · github.com · its alternatives →
- 21

Sharing my project inspired by twitter snowflake UUID generator but that supports: 1) Longer range of id's to be generated. 2) No coordination with other machines in the distributed system.
2022 · github.com · its alternatives →
- 22

I've created cppmatch, a lightweight, header-only C++ library that brings Rust-inspired pattern matching and error handling to C++. It tries to imitate the functionality of the questionmark (?) operator in C++ by using a macro that uses the gcc extension https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html This allows to create exceptionless code with non-intrusive error-as-value that unlike Exceptions, makes it clear which kinds of error a function can generate and forces you to handle (or ignore) them. The ? operator translates to *expect* To handle the errors I…
2025 · github.com · its alternatives →
- 23

Earlier this year, I took a month to reexamine my coding habits and rethink some past design choices. I hope to rewrite and improve my FOSS libraries this year, and I needed answers to a few questions first. Perhaps some of these questions will resonate with others in the community, too. - Are coroutines viable for high-performance work? - Should I use SIMD intrinsics for clarity or drop to assembly for easier library distribution? - Has hardware caught up with vectorized scatter/gather in AVX-512 & SVE? - How do secure enclaves & pointer tagging differ on Intel, Arm, & AMD? - What's…
2025 · github.com · its alternatives →
- 24

It is based on phase noise, consumes less than 60 LUT4s/FFs and achieves up to 7.99 bits of entropy per byte. Feel free to comment if you have any questions, ideas or thoughts :)
2023 · github.com · its alternatives →
Also compare
- CXXStateTree – A modern C++ library for hierarchical state machines alternatives
- My weekend project, QR-codes for everybody alternatives
- Floating point arithmetic types in C++ for any size and any base alternatives
- Coros – A Modern C++ Library for Task Parallelism alternatives
- LoopMix128 – Fast C PRNG (.46ns), 2^128 Period, BigCrush/PractRand Pass alternatives
- Markov – A compact C++ library to easily simulate Markov processes alternatives
Ranked by how close each launch is in meaning, then by votes. Prices were read from each product’s own site when checked and can change. Refine with your own description →