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 5930685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:35:17+00:00 2026-05-22T14:35:17+00:00

So a game I’m developing has a map system where individual parts of the

  • 0

So a game I’m developing has a map system where individual parts of the map can be loaded independently from (most of) the other parts.

I wanted to have a random number generator which, given a seed number, and a map part number, would generate a random number. But this number has to be consistent for each pair of seed and map part number.

What is such a random number generator called? Also, what are good examples of such a RNG?

  • 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-05-22T14:35:18+00:00Added an answer on May 22, 2026 at 2:35 pm

    Most random number generators work like this. You call a seed() function with some combination of your seed and part_number, then call a random() function to get the “random” number you want (which of course isn’t actually random, but that’s what you want).

    For instance, in C++:

    srand(seed*part_number);  // How you combine seed and part_number doesn't matter.
    result = rand();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The Game Boy Z80 CPU has a half-carry flag, and I can't seem to
I have a game server than can take requests from a user. A user
My game has class Enemy who's AI/functionality I can change with trait Moving trait
The game I'm developing renders perfectly on the Java backend and on IE 10.
I'm designing a game for windows 8 using HTML5 , but my game can't
For a game I'm working on, I wanted to throw the audio on another
I write game. I use RequestWindowFeature(WindowFeatures.NoTitle); at splash screen, but how can I disable
game.multiplayer = bundle.getString(multiplayer ,null); is giving the error: java.lang.NoSuchMethodError: android.os.Bundle.getString Other methods like game.word.word
Jump Game: Given an array, start from the first element and reach the last
My game application is having a timer(starting from 0:00 then increases) when it is

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.