bchavez / Bogus

:card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.
Other
8.72k stars 496 forks source link

What is "Seed Value"? #264

Closed andre-idrive closed 4 years ago

andre-idrive commented 4 years ago

Please excuse my very simple question but I couldn't understand from the documentation what Seed Value is in Randomizer.Seed(int Seed). Can you please help me out?

bchavez commented 4 years ago

Hi Andre,

Checkout these links: https://www.grasshopper3d.com/m/discussion?id=2985220%3ATopic%3A708634

https://docs.microsoft.com/en-us/dotnet/api/system.random.-ctor?view=netframework-4.8#System_Random__ctor_System_Int32_

Basically specifying a seed number will always generate the same random sequence even across program restarts; hence the name "pusedo"-random.

Thanks, Brian

On Mon, Oct 28, 2019, 12:24 PM Andre Thomas <notifications@github.com wrote:

Please excuse my very simple question but I couldn't understand from the documentation what Seed Value is in Randomizer.Seed(int Seed). Can you please help me out?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bchavez/Bogus/issues/264?email_source=notifications&email_token=AADUXJT3RLBVYKSXZDROLR3QQ435VA5CNFSM4JF63HZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HU3QQGQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADUXJRO3DPFHTUPJA6WKI3QQ435VANCNFSM4JF63HZA .