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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:55:32+00:00 2026-05-25T21:55:32+00:00

My newest project is the development of a text based RPG and now I

  • 0

My newest project is the development of a text based RPG and now I need a random number generator, a good one to compute in different situations whether some action can be performed without problems or not. Everyone of us knows, that the basic functions std::srand and std::rand are simple and easy algorithms to compute pseudo random values. However I want to have real and not pseudo values. Therefore i want to ask, whether it would to much overkill using a better solution than the mentioned one and to stick to the basics; and if not, what would you suggest? How to implement such a “good generator”?

  • 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-25T21:55:33+00:00Added an answer on May 25, 2026 at 9:55 pm

    My suggestion is to use Boost.Random. It has a number of quite good (and fast) RNGs. You don’t need a cryptographically secure one, but the ones they offer are better than rand.

    I’d go with mt19937 myself. It has a long period and is pretty fast. But Boost.Random has lots of these things, for most of your non-cryptographically secure needs.

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

Sidebar

Related Questions

On this project I am working on right now, one of the newest feature
I have made a list based navigation bar for my newest project and I
I have one project that I have modularized using Google Guice. But now when
I am new to MVC and decided to use it for my newest project.
I've recently updated my old Lua 5.1 project to the newest version of the
I have downloaded ajax control toolkit (newest) and trying out fileupload. It's really good
I am trying to build a project using the newest release candidate of Scala
I'm trying to get the newest hibernate version for my project, for this purpose
I'm creating a batch file (on Windows Vista) to deploy my project from development
My newest project is able to generate documents with information from a database. So

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.