In article <
0001HW.CB4A807E...@news.astraweb.com>,
Nelson <
nel...@nowhere.com> wrote:
> On Sun, 29 Jan 2012 03:34:01 -0500, Skylamar wrote
> (in article <2012012900340176664-nothingtoseehere@movealongnet>):
> Almost every programming language has a random (actually pseudorandom)
> number generator function. Assign every participant a number and the
> function will pick one.
>
> This AppleScript will will pick a random number between 1 and x:
>
> random number x
>
> For example if you have 1000 entrants, open the AppleScript Editor (in
> the Utilities folder), type in "random number 1000", and hit the "run"
> button.
>
> Excel, Filemaker, and similar apps also have random number functions
> built in.
The procedure suggested by one poster--put the names in a list and let a
random number generator pick the index of the winning name--is a simple
way to do what you want. Another poster pointed out that the random
number generators ("pseudorandom" is more accurate; they use a
deterministic algorithm, so the sequence of numbers one of these
generators produces is not truly random) are not very good. You can
find plenty of "random" number generators in the literature, and you can
run tests to see if they are close enough to random for your purpose.
I understand you wanted a simple answer. But it isn't really a simple
question. (There is a further generalization, designed to produce
better results in "Monte Carlo simulations," that I won't even get into.)