Sign in to follow this  
fiveworlds

Database Random

Recommended Posts

Posted (edited)

Let's suppose that we have a six sided dice game and we are generating a random number. Generally random number generation is tied to the system clock. However what if we had the randomly generated number query a randomly sorted database with six values? At any point in time the state of the database will be unknown. It could just be an octal number stored in memory the user can't access all we would do is add and overflow whenever random is used.

Edited by fiveworlds

Share this post


Link to post
Share on other sites

How do you make the database's order itself random?

Share this post


Link to post
Share on other sites

all we would do is add and overflow whenever random is used.

 

 

That sounds like a very crude version of a pseudo random number generator.

 

 

Generally random number generation is tied to the system clock.

 

This is not true. Sometimes people are recommended to seed the RNG using he clock, but this doesn't improve randomness at all.

  • Upvote 1

Share this post


Link to post
Share on other sites
Posted (edited)

"At any point in time the state of the database will be unknown."

 

So is randomness inherent in the thing? Or is randomness just a description of our ignorance?

 

If you flip a coin and it lands on the ground, but you haven't looked at it yet, what are the odds it's heads? 50-50, right? Because probability does not tell us about the coin. It tells us about our state of ignorance.

Edited by wtf

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this