C++ Logo

std-proposals

Advanced search

Re: [std-proposals] D4037R0 Allowing signed char and unsigned char in random number generation

From: Simon Schröder <dr.simon.schroeder_at_[hidden]>
Date: Fri, 27 Feb 2026 06:48:57 +0100
> On Feb 26, 2026, at 10:20 PM, Jens Maurer via Std-Proposals <std-proposals_at_[hidden]> wrote:
>
> You can select the seed value to get different sequences.

But only a handful of seed values for the Mersenne Twister have been proven to generate true random sequences. So, don’t rely on seeding for true randomness (in areas where you want true randomness, e.g. Monte Carlo methods, you might want to have reproducibility anyways). Using random number generators is still hard to do correctly if you don’t know about them. The documentation of Tina RNG is a good read to understand RNGs.

Received on 2026-02-27 05:49:12