Random Numbers
-
My problem seems to be an issue of generating random numbers. While the statements are quite clear and easy and all of us are familiar with it, I never can seem to come up with a set of truly random numbers, while hating to sound totally stupid and an idiot, it has been quite frustrating. I have used the "Randomize" statement, but it seems to not work very well or I have overlooked something that is far too easy. The program I am creating relies on a set of truly randome numbers to function. I use Visual Basic.net and I also Have Visual C++.Net as well, maybe I should switch gears and use another programming language??:eek: Michael Goesch
-
My problem seems to be an issue of generating random numbers. While the statements are quite clear and easy and all of us are familiar with it, I never can seem to come up with a set of truly random numbers, while hating to sound totally stupid and an idiot, it has been quite frustrating. I have used the "Randomize" statement, but it seems to not work very well or I have overlooked something that is far too easy. The program I am creating relies on a set of truly randome numbers to function. I use Visual Basic.net and I also Have Visual C++.Net as well, maybe I should switch gears and use another programming language??:eek: Michael Goesch
Computers cannot pick truly random numbers. They can't make guesses... They don't feel pain, or remorse... Oh, sorry... getting carried away there. http://home1.gte.net/deleyd/random/introduction.html[^]
Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Unknown wrote: "I love long walks, especialy taken by those that annoy me." Paraphrased from TMNT: "Cricket? You have to know what a crumpet is to understand Cricket."
-
Computers cannot pick truly random numbers. They can't make guesses... They don't feel pain, or remorse... Oh, sorry... getting carried away there. http://home1.gte.net/deleyd/random/introduction.html[^]
Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Unknown wrote: "I love long walks, especialy taken by those that annoy me." Paraphrased from TMNT: "Cricket? You have to know what a crumpet is to understand Cricket."
i had a similar problem with vb.net first i had coded the game yahtzee in vb6 and it worked fine then i was converting it into vb.net and after i got all the stuff out of the way i ran it in debug mode and i saw i got 5 random numbers which i use to change the pictures of the die showing but when i took it out of debug mode i get the same five numbers like i get all 1's or all 2's etc but the moment i put it into step by step debug it works perfectly again so maybe its a bug in .net cause i got pretty pissed off because i thought how in the hell do i debug something that works perfect in debug mode? don't know if this helps or not