I actually like psuedo randomness. Its quite a time saver when you are debugging code that works 99% of the time, and then crashes for one sub-set of "random" numbers, which you can easily simulate again by keeping track of the seeds you use.
For example, I just recently quashed a bug in my heap program that only occured once in a million, and when it occured, i was able to simulate it again with the same exact premises, thanks to psuedorandomness.
===============================================
Have I no control, is my soul not mine?
Am I not just man, destiny defined?
Never to be ruled, nor held to heel!
Pseudo-Randomness
This is my signature. There are many like it, but this one is mine. My signature is my best friend. It is my life. I must master it as I must master my life. My signature, without me, is useless. Without my signature, I am useless.
There is no such thing as "real" randomness.
If you initialize the rand() func with srand(timer()) it''s as random as you''ll get.
In fact if we split reality right now into two identical realities they (probably) would evolove identically, but if in one of them a butterfly flapps it''s wings in the beginning and in the other one doesn''t you''ll en up with two widely different realities. It all depends on the "seed".
The weather only appears random because there are far to many variables in motion for us to account for.
If you initialize the rand() func with srand(timer()) it''s as random as you''ll get.
In fact if we split reality right now into two identical realities they (probably) would evolove identically, but if in one of them a butterfly flapps it''s wings in the beginning and in the other one doesn''t you''ll en up with two widely different realities. It all depends on the "seed".
The weather only appears random because there are far to many variables in motion for us to account for.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement