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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:23:22+00:00 2026-06-07T02:23:22+00:00

So I know I can call random(long val) in Java to generate a random

  • 0

So I know I can call random(long val) in Java to generate a random number with a seed of 2^63. How would one do better (larger seed value)? I’m assuming this would have to be a manual class to perform such an accomplishment, but I’m a little lost as how to begin.

  • 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-07T02:23:24+00:00Added an answer on June 7, 2026 at 2:23 am

    Two ways to increase the amount of seed material are:

    • use an RNG designed to accept a lot of seed material.
    • combine two different RNGs.

    For the first, look at some of George Marsaglia’s methods, which use arrays to hold their state. There is an example at http://programmingpraxis.com/2010/10/05/george-marsaglias-random-number-generators/ (be careful to note the correction in the comments:

    #define SHR3  (jsr^=(jsr<>17), jsr^=(jsr<<5))
    

    The array t[256] is where most of the seed is held.

    For the second, look at Pierre L’Ecuyer’s work, for example, Efficient and Portable Combined Random Number Generators

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

Sidebar

Related Questions

(Yes I know I can call Java code from Scala; but that is pointless;
I know I can call it whatever, but just like there is a convention
I know we can explicitly call the constructor of a class in C++ using
I know you can do this.GetType().FullName To get My.Current.Class But what can I call
Is there a function I can call to know if a certain element is
I want to know what is the different of them. when I can call
I know I can find if a process is being debugged via a call
I know you can pass arguments through the RunWorkerAsync function call when you first
How i can know the current method stack frame while a recursive call in
I know about AJAX cross-domain policy. So I can't just call http://www.google.com over a

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.