Skip to content

Glossary: Coding Interviews in C++

std::mt19937

Also written: mt19937, std::uniform_int_distribution, std::random_device

The Mersenne Twister random number engine from `<random>`. `std::uniform_int_distribution` turns its raw numbers into whole numbers in a range, ends included, and `std::random_device` gives a different seed each run.

Where the book teaches it

Related terms

SeedBrute-force checker