Title: MWC1616 Post by: lostrelic on March 02, 2024, 01:38:26 PM Hi does anyone have any insights or information regarding how the random number generator class MWC1616 worked when seeding? Thanks
Title: Re: MWC1616 Post by: seoincorporation on March 03, 2024, 07:19:18 PM You can find the right answer on ChatGPT, that's the right way to use artificial intelligence.
Quote Here's a simplified description of how seeding might work for an MWC generator: 1.-Initialization: The generator's state, which typically consists of two 16-bit integers, is initialized based on the seed value. The seed value might be a single 32-bit integer or two separate 16-bit 2.-Multiplier Constants: MWC generators use specific constants as multipliers to produce a new random value in each iteration. These constants are chosen to ensure good statistical properties of the generated sequence. 3.-Seed Expansion: The seed is used to initialize the internal state, and the generator goes through a series of iterations to mix and expand the seed values across its internal state. 4.-Random Output: Once the generator is seeded, it can produce pseudorandom numbers by iteratively applying the multiply-with-carry operations to its internal state. Here is a high-level Python-like pseudocode for a simplified MWC1616 seeding process: Code: class MWC1616Generator: I hope this information helps you, and i highly recommend dealing with AI for this kind of question, because if you want to get on details or if you have any other questions about the topic, then the AI has a great explanation for you. Title: Re: MWC1616 Post by: ABCbits on March 04, 2024, 10:09:20 AM After looking many pages, i believe this is original documentation for MWC1616 http://www.helsbreth.org/random/rng_mwc1616.html (http://www.helsbreth.org/random/rng_mwc1616.html). One of documentation for JavaScript V8 engine also briefly explain how they use MWC1616 on https://github.com/v8/v8.dev/blob/main/src/blog/math-random.md (https://github.com/v8/v8.dev/blob/main/src/blog/math-random.md).
You can find the right answer on ChatGPT, that's the right way to use artificial intelligence. --snip-- I hope this information helps you, and i highly recommend dealing with AI for this kind of question, because if you want to get on details or if you have any other questions about the topic, then the AI has a great explanation for you. FWIW, the constant/multiplier on that pseudocode doesn't match MWC1616 doc. |