Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8451251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:11:14+00:00 2026-06-10T11:11:14+00:00

I know if you use the same seed with two different PRNG’s you’ll receive

  • 0

I know if you use the same seed with two different PRNG’s you’ll receive the same sequence of numbers. Does anyone know if it’s possible to generate the same number with two different seeds? If so, what are the odds?

I ran a test on this and received some strange results. If I have two instances of the same PRNG and I seed them with two different random seeds each time. The random number has to be between 0 and 1000. I get the same number 1046 times after 10,000,000 iterations. If I don’t seed them each time I receive about the same number about the same number of times (1033). What am I not understanding? I would think the odds would be much greater if you don’t re-seed each time (hmm, maybe not). Much like picking two cards from two decks. If I don’t shuffle the cards each time I would think the odds would be different then if I do.

Thanks,
Gary

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T11:11:16+00:00Added an answer on June 10, 2026 at 11:11 am

    The odds depend on the PRNG you’re using. Assuming it generates numbers in an even distribution and your seed is chosen randomly* then it’s just a function of the number of different numbers you can represent.

    *Random means with no relation to the previous seed, and no knowledge of the algorithm being used.

    For a 32 bit integer you have 2^32 different numbers you can represent, so given one integer, the odds of another sufficiently-random number being the same is 1/(2^32).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know if VS2010 will use the same project & solution file format
Hi I'm tring to use same variable in two different contexts in a single
I use the same form in two places. So I thought i could write
Possible Duplicate: Deflate command line tool Yes, I know I can use PHP itself
I use the same data to create few different parts of my visualization. I
I have two questions 1.) I want to know why do we need different-2
Somebody know how use OpenX (php app) with Django? I need to use OpenX
I know the use of WCF in SA is deprecated because it will move
I know you use the C based networking API to do FTP communication but
I know and use eric meyer CSS reset, but is there any more things

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.