Re: random generator
"Littlefield, Tyler" <[email protected]> Fri, 10 Aug 2007 12:35:13 -0600
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <003001c7db7d$31dfe460$2b802147@tdsportable> |
well, if you need it, I'll do it. if not... Let me know. :) Thanks, Tyler Littlefield. Vertigo head coder "My programs don't have bugs, just randomly added features." msn: [email protected] email: [email protected] aim: st8amnd2005 skype: st8amnd127 ----- Original Message ----- From: Simon Jaeger To: [email protected] Sent: Friday, August 10, 2007 4:02 AM Subject: Re: [AutoIt] random generator sure, as long as it doesn't have too many crazy params and it's easy to use. I don't really mind much, it's more out of curiocity, since I was wondering if the programs were communicatiing wth each other somehow. Simon ----- Original Message ----- From: Littlefield, Tyler To: [email protected] Sent: Thursday, August 09, 2007 6:11 PM Subject: Re: [AutoIt] random generator here's the deal. if AutoIt is initializing with srand, you may not be getting the best results. I can write something real quick, (a dll), that will allow you to re-initialize the random library, and then generate a random number. HTH, Thanks, Tyler Littlefield. Vertigo head coder "My programs don't have bugs, just randomly added features." msn: [email protected] email: [email protected] aim: st8amnd2005 skype: st8amnd127 ----- Original Message ----- From: Simon Jaeger To: [email protected] Sent: Thursday, August 09, 2007 6:08 PM Subject: [AutoIt] random generator Hello, I used a random number script that defined a random variable, waited 15 seconds and then wrote it to a file. I had a very interesting result when I held down enter for a few seconds. Here is the code, then the results code #NoTrayIcon $number=random(1,999999,0) sleep(15000) FileWrite("random.txt",$number&@crlf) beep(1000,25) now the results 106046.81145374 640263.506011862 640263.506011862 640263.506011862 640263.506011862 640263.506011862 640263.506011862 448652.837441687 448652.837441687 448652.837441687 448652.837441687 448652.837441687 448652.837441687 448652.837441687 448652.837441687 448652.837441687 448652.837441687 448652.837441687 448652.837441687 448652.837441687 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 458431.832275483 106182.874382966 106182.874382966 106182.874382966 106182.874382966 106182.874382966 106182.874382966 106182.874382966 106182.874382966 815227.239908001 815227.239908001 815227.239908001 815227.239908001 815227.239908001 815227.239908001 815227.239908001 815227.239908001 815227.239908001 815227.239908001 815227.239908001 815227.239908001 815227.239908001 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 689041.96730317 272557.254815989 272557.254815989 272557.254815989 272557.254815989 272557.254815989 272557.254815989 272557.254815989 272557.254815989 272557.254815989 272557.254815989 272557.254815989 272557.254815989 272557.254815989 272557.254815989 272557.254815989 272557.254815989 272557.254815989 272557.254815989 272557.254815989 272557.254815989 272557.254815989 137690.134165872 137690.134165872 272557.254815989 272557.254815989 272557.254815989 272557.254815989 272557.254815989 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 272557.254815989 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 137690.134165872 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 137690.134165872 938240.88958369 137690.134165872 137690.134165872 938240.88958369 938240.88958369 938240.88958369 137690.134165872 137690.134165872 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 938240.88958369 notice, a 14 digit number. WHat are the odds of that coming out the same way more than 20 times. I was hoping someone could explain this to me. Are the scripts interfeering with each other somehow, using the same memory space or something? Simon [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]