C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Random number generation suggestion

From: Paul Caprioli <paul_at_[hidden]>
Date: Sat, 30 Aug 2025 20:19:21 +0000
> Can you guys please add a feature, where you can limit the random, without math? > I ask because memorizing int random_num = min_val + rand() % (max_val - min_val + 1); isnt easy Is std::uniform_int_distribution suitable for your use?

Received on 2025-08-30 20:19:22