Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #8277 > unrolled thread

Simulating the rolling of dices to produce truly random numbers?

Started by"Mr. Man-wai Chang" <toylet.toylet@gmail.com>
First post2018-01-10 23:50 +0800
Last post2018-01-10 12:29 -0800
Articles 20 — 8 participants

Back to article view | Back to comp.programming


Contents

  Simulating the rolling of dices to produce truly random numbers? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2018-01-10 23:50 +0800
    Re: Simulating the rolling of dices to produce truly random numbers? Robert Wessel <robertwessel2@yahoo.com> - 2018-01-10 10:52 -0600
      Re: Simulating the rolling of dices to produce truly random numbers? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2018-01-11 00:55 +0800
        Re: Simulating the rolling of dices to produce truly random numbers? Robert Wessel <robertwessel2@yahoo.com> - 2018-01-10 10:59 -0600
          Re: Simulating the rolling of dices to produce truly random numbers? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2018-01-11 01:00 +0800
            Re: Simulating the rolling of dices to produce truly random numbers? Robert Wessel <robertwessel2@yahoo.com> - 2018-01-10 11:16 -0600
      Re: Simulating the rolling of dices to produce truly random numbers? Robert Wessel <robertwessel2@yahoo.com> - 2018-01-10 10:55 -0600
        Re: Simulating the rolling of dices to produce truly random numbers? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2018-01-11 00:58 +0800
          Re: Simulating the rolling of dices to produce truly random numbers? David Brown <david.brown@hesbynett.no> - 2018-01-10 22:07 +0100
    Re: Simulating the rolling of dices to produce truly random numbers? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2018-01-10 10:20 -0700
      Re: Simulating the rolling of dices to produce truly random numbers? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2018-01-11 01:22 +0800
        Re: Simulating the rolling of dices to produce truly random numbers? Robert Wessel <robertwessel2@yahoo.com> - 2018-01-10 11:32 -0600
          Re: Simulating the rolling of dices to produce truly random numbers? Richard Heathfield <rjh@cpax.org.uk> - 2018-01-10 18:15 +0000
            Re: Simulating the rolling of dices to produce truly random numbers? Robert Wessel <robertwessel2@yahoo.com> - 2018-01-10 13:09 -0600
        Re: Simulating the rolling of dices to produce truly random numbers? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2018-01-10 10:38 -0700
          Re: Simulating the rolling of dices to produce truly random numbers? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2018-01-11 01:48 +0800
            Re: Simulating the rolling of dices to produce truly random numbers? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2018-01-10 11:43 -0700
      Re: Simulating the rolling of dices to produce truly random numbers? scott@slp53.sl.home (Scott Lurndal) - 2018-01-10 18:20 +0000
        Re: Simulating the rolling of dices to produce truly random numbers? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2018-01-10 13:23 -0500
    Re: Simulating the rolling of dices to produce truly random numbers? "Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid> - 2018-01-10 12:29 -0800

#8277 — Simulating the rolling of dices to produce truly random numbers?

From"Mr. Man-wai Chang" <toylet.toylet@gmail.com>
Date2018-01-10 23:50 +0800
SubjectSimulating the rolling of dices to produce truly random numbers?
Message-ID<p35cnr$s04$1@toylet.eternal-september.org>
Is it possible? Any existing algorithms or published papers?

-- 
   @~@   Remain silent! Drink, Blink, Stretch! Live long and prosper!!
  / v \  Simplicity is Beauty!
/( _ )\ May the Force and farces be with you!
   ^ ^   (x86_64 Ubuntu 9.10)  Linux 2.6.39.3
不借貸! 不詐騙! 不援交! 不打交! 不打劫! 不自殺! 請考慮綜援 (CSSA):
http://www.swd.gov.hk/tc/index/site_pubsvc/page_socsecu/sub_addressesa

[toc] | [next] | [standalone]


#8278

FromRobert Wessel <robertwessel2@yahoo.com>
Date2018-01-10 10:52 -0600
Message-ID<h1hc5dhsn0poohj21es31b49q0ha0ih4dn@4ax.com>
In reply to#8277
On Wed, 10 Jan 2018 23:50:19 +0800, "Mr. Man-wai Chang"
<toylet.toylet@gmail.com> wrote:

>
>Is it possible? Any existing algorithms or published papers?


If it's done in a deterministic fashion, then no, it won't be any more
"truly" random than any other PRNG.

If you have a source of non-deterministic input, there are certainly
better ways to turn that into proper true random output ("whitening").

[toc] | [prev] | [next] | [standalone]


#8279

From"Mr. Man-wai Chang" <toylet.toylet@gmail.com>
Date2018-01-11 00:55 +0800
Message-ID<p35gi1$p76$2@toylet.eternal-september.org>
In reply to#8278
On 11/1/2018 00:52, Robert Wessel wrote:
>
> If it's done in a deterministic fashion, then no, it won't be any more
> "truly" random than any other PRNG.
>
> If you have a source of non-deterministic input, there are certainly
> better ways to turn that into proper true random output ("whitening").

We possibly could not randomize the first contact point between the box 
and the surface? :)

-- 
   @~@   Remain silent! Drink, Blink, Stretch! Live long and prosper!!
  / v \  Simplicity is Beauty!
/( _ )\ May the Force and farces be with you!
   ^ ^   (x86_64 Ubuntu 9.10)  Linux 2.6.39.3
不借貸! 不詐騙! 不援交! 不打交! 不打劫! 不自殺! 請考慮綜援 (CSSA):
http://www.swd.gov.hk/tc/index/site_pubsvc/page_socsecu/sub_addressesa

[toc] | [prev] | [next] | [standalone]


#8282

FromRobert Wessel <robertwessel2@yahoo.com>
Date2018-01-10 10:59 -0600
Message-ID<tdhc5dd8r79k27r4u1mh74namu3qgkdjc9@4ax.com>
In reply to#8279
On Thu, 11 Jan 2018 00:55:29 +0800, "Mr. Man-wai Chang"
<toylet.toylet@gmail.com> wrote:

>On 11/1/2018 00:52, Robert Wessel wrote:
>>
>> If it's done in a deterministic fashion, then no, it won't be any more
>> "truly" random than any other PRNG.
>>
>> If you have a source of non-deterministic input, there are certainly
>> better ways to turn that into proper true random output ("whitening").
>
>We possibly could not randomize the first contact point between the box 
>and the surface? :)


Again, if you do it deterministically, you've not created true
randomness.  If you have a way of doing non-deterministically, which
means you have a non-deterministic input to your system, just start
from there, and don't go through the silly exercise of simulating the
physical motion of dice.

IOW, you can't create real random dice rolls unless you have an actual
source of true randomness to input to your dice simulation algorithm.

[toc] | [prev] | [next] | [standalone]


#8283

From"Mr. Man-wai Chang" <toylet.toylet@gmail.com>
Date2018-01-11 01:00 +0800
Message-ID<p35grq$qin$3@toylet.eternal-september.org>
In reply to#8282
On 11/1/2018 00:59, Robert Wessel wrote:
>
> Again, if you do it deterministically, you've not created true
> randomness.  If you have a way of doing non-deterministically, which
> means you have a non-deterministic input to your system, just start
> from there, and don't go through the silly exercise of simulating the
> physical motion of dice.
>
> IOW, you can't create real random dice rolls unless you have an actual
> source of true randomness to input to your dice simulation algorithm.

So there is mechanics that could never be modeled using mathematics and 
computers?

-- 
   @~@   Remain silent! Drink, Blink, Stretch! Live long and prosper!!
  / v \  Simplicity is Beauty!
/( _ )\ May the Force and farces be with you!
   ^ ^   (x86_64 Ubuntu 9.10)  Linux 2.6.39.3
不借貸! 不詐騙! 不援交! 不打交! 不打劫! 不自殺! 請考慮綜援 (CSSA):
http://www.swd.gov.hk/tc/index/site_pubsvc/page_socsecu/sub_addressesa

[toc] | [prev] | [next] | [standalone]


#8284

FromRobert Wessel <robertwessel2@yahoo.com>
Date2018-01-10 11:16 -0600
Message-ID<a8ic5dlfvcste3p27is68tvf1tsbuquidj@4ax.com>
In reply to#8283
On Thu, 11 Jan 2018 01:00:42 +0800, "Mr. Man-wai Chang"
<toylet.toylet@gmail.com> wrote:

>On 11/1/2018 00:59, Robert Wessel wrote:
>>
>> Again, if you do it deterministically, you've not created true
>> randomness.  If you have a way of doing non-deterministically, which
>> means you have a non-deterministic input to your system, just start
>> from there, and don't go through the silly exercise of simulating the
>> physical motion of dice.
>>
>> IOW, you can't create real random dice rolls unless you have an actual
>> source of true randomness to input to your dice simulation algorithm.
>
>So there is mechanics that could never be modeled using mathematics and 
>computers?


According to most interpretations of Quantum Mechanics, there are
phenomenon that are objectively unpredictable.  For example, there is
no apparent way, and if QM is correct, no possible way, to determine
when an unstable atomic nucleus will decay, not matter how much
information we have about that nucleus before hand.  We can make
*statistical* statements about such things (eg. half of all carbon-14
atoms in a lump of coal will decay in 5700 years), but the individual
events are not predictable (there's no telling when a particular
carbon-14 will decay).

[toc] | [prev] | [next] | [standalone]


#8280

FromRobert Wessel <robertwessel2@yahoo.com>
Date2018-01-10 10:55 -0600
Message-ID<c9hc5dhk1hfm5bvkjbcak2fl42uvtca9nq@4ax.com>
In reply to#8278
On Wed, 10 Jan 2018 10:52:24 -0600, Robert Wessel
<robertwessel2@yahoo.com> wrote:

>On Wed, 10 Jan 2018 23:50:19 +0800, "Mr. Man-wai Chang"
><toylet.toylet@gmail.com> wrote:
>
>>
>>Is it possible? Any existing algorithms or published papers?
>
>
>If it's done in a deterministic fashion, then no, it won't be any more
>"truly" random than any other PRNG.
>
>If you have a source of non-deterministic input, there are certainly
>better ways to turn that into proper true random output ("whitening").


Or you could use real dice:

http://gamesbyemail.com/news/diceomatic

One of my favorite pieces of over-engineering.  Be sure to watch the
video.

[toc] | [prev] | [next] | [standalone]


#8281

From"Mr. Man-wai Chang" <toylet.toylet@gmail.com>
Date2018-01-11 00:58 +0800
Message-ID<p35gn2$qin$1@toylet.eternal-september.org>
In reply to#8280
On 11/1/2018 00:55, Robert Wessel wrote:
>
> Or you could use real dice:
>
> http://gamesbyemail.com/news/diceomatic
>
> One of my favorite pieces of over-engineering.  Be sure to watch the
> video.
>

Could you shrink the whole thing into the size of a capacitor, and make 
it accessible by electronics? :)

-- 
   @~@   Remain silent! Drink, Blink, Stretch! Live long and prosper!!
  / v \  Simplicity is Beauty!
/( _ )\ May the Force and farces be with you!
   ^ ^   (x86_64 Ubuntu 9.10)  Linux 2.6.39.3
不借貸! 不詐騙! 不援交! 不打交! 不打劫! 不自殺! 請考慮綜援 (CSSA):
http://www.swd.gov.hk/tc/index/site_pubsvc/page_socsecu/sub_addressesa

[toc] | [prev] | [next] | [standalone]


#8296

FromDavid Brown <david.brown@hesbynett.no>
Date2018-01-10 22:07 +0100
Message-ID<p35v9t$hg9$2@dont-email.me>
In reply to#8281
On 10/01/18 17:58, Mr. Man-wai Chang wrote:
> On 11/1/2018 00:55, Robert Wessel wrote:
>>
>> Or you could use real dice:
>>
>> http://gamesbyemail.com/news/diceomatic
>>
>> One of my favorite pieces of over-engineering.  Be sure to watch the
>> video.
>>
> 
> Could you shrink the whole thing into the size of a capacitor, and make 
> it accessible by electronics? :)
> 

Yes - get a high resolution g-sensor or micro-mechanical gyro, and use 
the lowest few bits.  There is always enough shaking (at least here on 
earth) to give high entropy on them.

[toc] | [prev] | [next] | [standalone]


#8285

FromJoe Pfeiffer <pfeiffer@cs.nmsu.edu>
Date2018-01-10 10:20 -0700
Message-ID<1bshbdljfk.fsf@pfeifferfamily.net>
In reply to#8277
"Mr. Man-wai Chang" <toylet.toylet@gmail.com> writes:

> Is it possible? Any existing algorithms or published papers?

There are a zillion ways to generate truly random numbers, all based on
somehow reading a suitably random input -- no need to simulate dice.

To use a simulation of dice to get random numbers, you'd need to have a
source of random numbers available to you, to perturb the the behavior
of the dice.  So you'd be using a (relatively) much more efficient
source of randomness to drive a really inefficient source.

[toc] | [prev] | [next] | [standalone]


#8286

From"Mr. Man-wai Chang" <toylet.toylet@gmail.com>
Date2018-01-11 01:22 +0800
Message-ID<p35i4q$5o5$1@toylet.eternal-september.org>
In reply to#8285
On 11/1/2018 01:20, Joe Pfeiffer wrote:
> There are a zillion ways to generate truly random numbers, all based on
> somehow reading a suitably random input -- no need to simulate dice.
>
> To use a simulation of dice to get random numbers, you'd need to have a
> source of random numbers available to you, to perturb the the behavior
> of the dice.  So you'd be using a (relatively) much more efficient
> source of randomness to drive a really inefficient source.

Are you saying that dices are NOT random enough?

(I remember Mr. Einstein's statement: "God does not play dice" :)

-- 
   @~@   Remain silent! Drink, Blink, Stretch! Live long and prosper!!
  / v \  Simplicity is Beauty!
/( _ )\ May the Force and farces be with you!
   ^ ^   (x86_64 Ubuntu 9.10)  Linux 2.6.39.3
不借貸! 不詐騙! 不援交! 不打交! 不打劫! 不自殺! 請考慮綜援 (CSSA):
http://www.swd.gov.hk/tc/index/site_pubsvc/page_socsecu/sub_addressesa

[toc] | [prev] | [next] | [standalone]


#8287

FromRobert Wessel <robertwessel2@yahoo.com>
Date2018-01-10 11:32 -0600
Message-ID<66jc5d9lmlk2r5gediaoq8rp2to2svs024@4ax.com>
In reply to#8286
On Thu, 11 Jan 2018 01:22:35 +0800, "Mr. Man-wai Chang"
<toylet.toylet@gmail.com> wrote:

>On 11/1/2018 01:20, Joe Pfeiffer wrote:
>> There are a zillion ways to generate truly random numbers, all based on
>> somehow reading a suitably random input -- no need to simulate dice.
>>
>> To use a simulation of dice to get random numbers, you'd need to have a
>> source of random numbers available to you, to perturb the the behavior
>> of the dice.  So you'd be using a (relatively) much more efficient
>> source of randomness to drive a really inefficient source.
>
>Are you saying that dices are NOT random enough?
>
>(I remember Mr. Einstein's statement: "God does not play dice" :)


While was Einstein rejecting quantum mechanics with that statement,
the broad consensus is that he was seriously wrong.  QM (in its modern
form) is considered a massively solid theory, backed by masses of
evidence, and tons of tested and verified theoretical predictions. And
everyone fully understands that is also incomplete, and in conflict
with relativity's understanding of gravity (and relativity also has
massive support).  Which is why the search for the so-called
"Theory-of-Everything", is such a thing...

[toc] | [prev] | [next] | [standalone]


#8290

FromRichard Heathfield <rjh@cpax.org.uk>
Date2018-01-10 18:15 +0000
Message-ID<p35l7a$5e9$1@dont-email.me>
In reply to#8287
On 10/01/18 17:32, Robert Wessel wrote:

<snip>

> QM (in its modern form) is considered a massively
> solid theory, backed by masses of
> evidence[... It] is also incomplete, and in conflict
> with relativity's understanding of gravity [...].
> Which is why the search for the so-called
> "Theory-of-Everything", is such a thing...

I suppose it's almost too obvious to mention, especially as there are so 
many great minds involved in the search --- but has anyone looked behind 
the settee?

-- 
Richard Heathfield
Email: rjh at cpax dot org dot uk
"Usenet is a strange place" - dmr 29 July 1999
Sig line 4 vacant - apply within

[toc] | [prev] | [next] | [standalone]


#8294

FromRobert Wessel <robertwessel2@yahoo.com>
Date2018-01-10 13:09 -0600
Message-ID<d4pc5dhq7k32cka9ccgqr3hevchj4sj8t5@4ax.com>
In reply to#8290
On Wed, 10 Jan 2018 18:15:05 +0000, Richard Heathfield
<rjh@cpax.org.uk> wrote:

>On 10/01/18 17:32, Robert Wessel wrote:
>
><snip>
>
>> QM (in its modern form) is considered a massively
>> solid theory, backed by masses of
>> evidence[... It] is also incomplete, and in conflict
>> with relativity's understanding of gravity [...].
>> Which is why the search for the so-called
>> "Theory-of-Everything", is such a thing...
>
>I suppose it's almost too obvious to mention, especially as there are so 
>many great minds involved in the search --- but has anyone looked behind 
>the settee?


Well, that would certainly be embarrassing...

I wonder if any of my socks are back there too?

[toc] | [prev] | [next] | [standalone]


#8288

FromJoe Pfeiffer <pfeiffer@cs.nmsu.edu>
Date2018-01-10 10:38 -0700
Message-ID<1bo9m1lim5.fsf@pfeifferfamily.net>
In reply to#8286
"Mr. Man-wai Chang" <toylet.toylet@gmail.com> writes:

> On 11/1/2018 01:20, Joe Pfeiffer wrote:
>> There are a zillion ways to generate truly random numbers, all based on
>> somehow reading a suitably random input -- no need to simulate dice.
>>
>> To use a simulation of dice to get random numbers, you'd need to have a
>> source of random numbers available to you, to perturb the the behavior
>> of the dice.  So you'd be using a (relatively) much more efficient
>> source of randomness to drive a really inefficient source.
>
> Are you saying that dices are NOT random enough?
>
> (I remember Mr. Einstein's statement: "God does not play dice" :)

Dice are plenty random enough -- you're talking about simulating them.
A *simulation* of dice won't be random enough unless you put randomness
into it.

[toc] | [prev] | [next] | [standalone]


#8289

From"Mr. Man-wai Chang" <toylet.toylet@gmail.com>
Date2018-01-11 01:48 +0800
Message-ID<p35jm7$vld$4@toylet.eternal-september.org>
In reply to#8288
On 11/1/2018 01:38, Joe Pfeiffer wrote:
>
> Dice are plenty random enough -- you're talking about simulating them.
> A *simulation* of dice won't be random enough unless you put randomness
> into it.

Could I say the same to quantum mechanics and its implementations? :)

-- 
   @~@   Remain silent! Drink, Blink, Stretch! Live long and prosper!!
  / v \  Simplicity is Beauty!
/( _ )\ May the Force and farces be with you!
   ^ ^   (x86_64 Ubuntu 9.10)  Linux 2.6.39.3
不借貸! 不詐騙! 不援交! 不打交! 不打劫! 不自殺! 請考慮綜援 (CSSA):
http://www.swd.gov.hk/tc/index/site_pubsvc/page_socsecu/sub_addressesa

[toc] | [prev] | [next] | [standalone]


#8293

FromJoe Pfeiffer <pfeiffer@cs.nmsu.edu>
Date2018-01-10 11:43 -0700
Message-ID<1bk1wplfla.fsf@pfeifferfamily.net>
In reply to#8289
"Mr. Man-wai Chang" <toylet.toylet@gmail.com> writes:

> On 11/1/2018 01:38, Joe Pfeiffer wrote:
>>
>> Dice are plenty random enough -- you're talking about simulating them.
>> A *simulation* of dice won't be random enough unless you put randomness
>> into it.
>
> Could I say the same to quantum mechanics and its implementations? :)

Yes.

[toc] | [prev] | [next] | [standalone]


#8291

Fromscott@slp53.sl.home (Scott Lurndal)
Date2018-01-10 18:20 +0000
Message-ID<FPs5C.130788$ET6.122210@fx38.iad>
In reply to#8285
Joe Pfeiffer <pfeiffer@cs.nmsu.edu> writes:
>"Mr. Man-wai Chang" <toylet.toylet@gmail.com> writes:
>
>> Is it possible? Any existing algorithms or published papers?
>
>There are a zillion ways to generate truly random numbers, all based on
>somehow reading a suitably random input -- no need to simulate dice.

When I was at SGI, a couple of colleagues published a paper
on using a Lava Lamp as a source of randomness in a random
number generator.

https://en.wikipedia.org/wiki/Lavarand

[toc] | [prev] | [next] | [standalone]


#8292

FromLew Pitcher <lew.pitcher@digitalfreehold.ca>
Date2018-01-10 13:23 -0500
Message-ID<p35lmk$6vn$1@dont-email.me>
In reply to#8291
Scott Lurndal wrote:

> Joe Pfeiffer <pfeiffer@cs.nmsu.edu> writes:
>>"Mr. Man-wai Chang" <toylet.toylet@gmail.com> writes:
>>
>>> Is it possible? Any existing algorithms or published papers?
>>
>>There are a zillion ways to generate truly random numbers, all based on
>>somehow reading a suitably random input -- no need to simulate dice.
> 
> When I was at SGI, a couple of colleagues published a paper
> on using a Lava Lamp as a source of randomness in a random
> number generator.

Which the company "Cloudflair" uses today to generate random numbers for 
encryption purposes

https://www.fastcodesign.com/90137157/the-hardest-working-office-design-in-
america-encrypts-your-data-with-lava-lamps
-- 
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request

[toc] | [prev] | [next] | [standalone]


#8295

From"Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid>
Date2018-01-10 12:29 -0800
Message-ID<p35t43$l6$1@dont-email.me>
In reply to#8277
On 1/10/2018 7:50 AM, Mr. Man-wai Chang wrote:
> 
> Is it possible? Any existing algorithms or published papers?
> 

Fwiw, you can take a look at some:

https://en.wikipedia.org/wiki/Hardware_random_number_generator

Perhaps: https://www.random.org as well...

[toc] | [prev] | [standalone]


Back to top | Article view | comp.programming


csiph-web