Re: Newbie question on discrete distribution of random numbers
- From: sbaker8688@xxxxxxx
- Date: Fri, 12 Oct 2007 21:05:41 -0700
Maybe you underestimate the difficulty of making a random permutation of a
list of things: it is full of pitfalls. Have a look at Skiena's book (The
algorithm design manual).
I didn't underestimate it, or in George W. Bush's words,
"misunderestimate" it, heh. I actually have quite a lot of experience
in it, including a commercial casino game I wrote in another
language. I was merely working with what I had to work with. The man
asked for "random" numbers with an exact amount of each of the numbers
in his interval, and so I gave him a "quick and dirty." I assume by
his post (he did not provide details) that he doesn't need anything
more than that.
For "true" random numbers one should probably go to some sort of
hardware solution based on radioactive decay, plucking "white noise"
out of the air, etc. But even then, he'd have to massage the results
to get the exact amount of each of the numbers he proscribes.
Regards.
.
- Follow-Ups:
- References:
- Newbie question on discrete distribution of random numbers
- From: Jason
- Re: Newbie question on discrete distribution of random numbers
- From: sbaker8688
- Re: Newbie question on discrete distribution of random numbers
- From: bart demoen
- Newbie question on discrete distribution of random numbers
- Prev by Date: Re: Trying to setup a hierarchy of classes of things (SWI prolog)
- Next by Date: Re: Trying to setup a hierarchy of classes of things (SWI prolog)
- Previous by thread: Re: Newbie question on discrete distribution of random numbers
- Next by thread: Re: Newbie question on discrete distribution of random numbers
- Index(es):
Relevant Pages
|
|