http://www.segobit.com/rng.EXE
2006-09-21 05:28:36
·
answer #1
·
answered by astrokid 4
·
1⤊
0⤋
As John von Neumann once said, "Anyone trying to generate random numbers with a finite algorithm is already living in a state of sin." ☺
But there are some 'pseudo-random' sequences that have sufficiently random characteristics to be useful.
Most programming languages have some sort of 'random generator' built into them.
Doug
2006-09-21 05:45:34
·
answer #2
·
answered by doug_donaghue 7
·
0⤊
0⤋
Most spreadsheets and many other applications have a function called rand() or rnd() or something similar, which generates a random number between 0 and 1. You can generate a random integer from 1 to 20 by
round(rand()*20+0.5)
Of course you can replace 20 with any number you want.
2006-09-21 05:33:35
·
answer #3
·
answered by helene_thygesen 4
·
0⤊
0⤋
First examine your selection and verify that that's different than for one yet another, do no longer generate a selection from a million to a million, in the journey that your selection is right then examine further. there's a delicate concern with random selection turbines; the way they paintings is they take a 'seed' selection and run it via an set of rules to get a random selection. The seed selection is regularly your gadget time in microseconds. the priority that happens is your gadget time doesnt substitute quickly adequate so it makes use of the comparable seed; for that reason, producing the comparable selection. the superb thank you to get a 'sturdy' random selection is to place a Threading.thread.sleep(10) on your code to grant the gadget time a raffle to alter. yet another decision is to seek for a extra helpful way of producing a random selection. sturdy success! :) EDIT: examine out the guy above me, he used a seed in milliseconds, which ability 2 calls, one after yet another, have a probability of yielding the comparable outcomes, yuk!
2016-10-01 05:22:45
·
answer #4
·
answered by riesgo 4
·
0⤊
0⤋
I thought about that for two years once, because my job requires me to generate random numbers. By definition, any machine cannot generate anything random unless it breaks. It MUST follow its instructions, and by definition, instructions are not random. After two years of thought, I flip a coin. No kidding.
2006-09-21 05:28:48
·
answer #5
·
answered by All hat 7
·
1⤊
0⤋
There are tons. Just do a search for "random number generator".
2006-09-21 08:17:52
·
answer #6
·
answered by Tiberius 4
·
1⤊
0⤋
Here's a RNG in BASIC, download qbasic and type in this program.
'---- This tiny function generates unique random numbers to screen
FOR ION = 1 TO GU
PRINT "#"; ION; "->";
S2 = K: S1 = V
FOR j = 1 TO S1
IF RND < S2 / S1 THEN PRINT j; : S2 = S2 - 1
S1 = S1 - 1
NEXT j: PRINT
NEXT ION
END IF
2006-09-21 05:31:07
·
answer #7
·
answered by Anonymous
·
0⤊
0⤋
There are hundreds of PSEUDO-random number generators available. If you have access to linux or unix, you have one available to you from the shell.
2006-09-21 05:30:11
·
answer #8
·
answered by spongeworthy_us 6
·
2⤊
0⤋
Try Google.
2006-09-21 07:09:45
·
answer #9
·
answered by ag_iitkgp 7
·
0⤊
0⤋
www.random.org
2006-09-21 05:31:44
·
answer #10
·
answered by poeticjustice 6
·
0⤊
0⤋