| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Random Numerals |
PE> RS> Paul,
PE> RS> Ok , i admit - you can't have perfect random numbers - but i would
PE> RS> like to have something that is random , i.e. the probability of a numb
PE> RS> occuring after the same one is so small , that you have got a different
PE> RS> result all the time. The rand() included in the ANSI standard is not
PE> RS> really random. If you make a program like:
PE> RS> #include
PE> RS> main() {
PE> RS> printf("the number was %d" , rand());
PE> RS> }
PE> RS> You would get the same result each time. Anyway , can you explain me th
PE> RS> 'Hiesenberg Uncertainty Principle' - i have never heard of it before.
PE>Look up srand() and do something like srand(time()); That
PE>will make your problem go away and you can hop into bed
PE>with ANSI. As for Hiesenburg, well he says that the more
PE>finely you try to measure something, the more uncertain you
PE>are that the value is correct. And it's unpredictable what
PE>actually happens. Something like that anyway.
Formally, the uncertainty in measuring the position of a particle, times
the uncertainty in measuring its momentum, can never be less than
Planck's constant. So if you know precisely how fast something's going
you have no idea where it is, and vv.
PE>Try asking in GTNET_SCIENCE. BFN.
Or Aust_AVTech, Paul?
For truly random numbers, try using radioactive decay.
Regards, FIM.
* SLMR 2.1a * On a clear disk you can seek forever
--- Maximus 2.01wb
* Origin: Sydney PC Users Group - COMPAQ BBS (3:712/505)SEEN-BY: 3/1 2 4 5 6 54/54 99 711/401 430 807 808 809 934 712/218 407 414 505 SEEN-BY: 712/506 515 517 537 618 623 627 704 719 713/306 888 714/906 @PATH: 712/505 623 54/99 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.