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

  • Home
  • SEARCH
  • 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 6104547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:51:16+00:00 2026-05-23T13:51:16+00:00

I am looking for an algorithm to generate pseudo random numbers in a three

  • 0

I am looking for an algorithm to generate pseudo random numbers in a three (or better n) dimensional space of large extents. When initialized with a seed the generator should be able to repeatedly produce the same numbers for the same seed.

But unlike most generators available in programming languages, it should not just return the next random number in a sequence, but instead generate numbers for specific coordinates, no matter in what sequence the values are requested.

The size of the space should be regarded as too big to generate all the numbers at initialization time. In Java it could look something like this:

Random3D gen = new Random3D(seed);
int n1 = gen.getInt(3,0,6);
int n2 = gen.getInt(2,-3,1);
...

How would I do something like this?

I tried it in Java by writing some code using java.util.Random, but the quality of the results was not very good.

  • 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-23T13:51:17+00:00Added an answer on May 23, 2026 at 1:51 pm

    If you want to receive always the same result for the same coordenate, when you specify the seed, them you’re not looking for a true random generator.

    You want a fast algorithm, a reliable one ? For a fast one, that a look at Mersenne twister. For a stronger one, you could look Blum Blum Shub.

    You could use your n-dimensional coordinates, plus your seed, to generate the pseudo-random-number-generator. You could, for example, calculate the sha1 or md5 or any other hash of the coordinates + seed and use it in the PRNG.

    Edit: for a simple solution, the math.random can receive a seed of 48 bits (smaller than the md5 output), which can be a bit small for your question (you mentionated to have high dimensionality, right? with larges coordinates?)

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

Sidebar

Related Questions

I've been looking for a simple Java algorithm to generate a pseudo-random alpha-numeric string.
I'm looking for an algorithm to generate permutations of a set in such a
I am looking for an algorithm that will generate a series of colors so
I am looking for an algorithm to encrypt secret numbers on a mobile device
i am looking for an algorithm ( in pseudo code) that generates the 3d
I'm looking for an algorithm to generate all permutations with repetition of 4 elements
Im looking for an algorithm to be used in a racing game Im making.
I'm looking for an algorithm to detect if two rectangles intersect (one at an
I am looking for an algorithm to calculate the next set of operations in
I'm looking for an algorithm (or PHP code, I suppose) to end up with

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.