Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > General Discussion

 
 
Thread Tools Display Modes

 
Post random numbers
Reply
Posted 2002-11-09, 11:10 PM
anyone know how something that suppose to take commands and act on those commands, a computer, GENERATE a random numbers?
Old
Profile PM WWW Search
LordZpider is neither ape nor machine; has so far settled for the in-betweenLordZpider is neither ape nor machine; has so far settled for the in-between
 
 
LordZpider
 



 
Reply
Posted 2002-11-09, 11:13 PM in reply to LordZpider's post "random numbers"
HUH?!

"When the people find that they can vote themselves money, that will herald the end of the republic."- Benjamin Franklin
Old
Profile PM WWW Search
Adrenachrome enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzAdrenachrome enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
Adrenachrome
 



 
Reply
Posted 2002-11-09, 11:55 PM in reply to LordZpider's post "random numbers"
Rephrase please =/
Old
Profile PM WWW Search
tacoX is neither ape nor machine; has so far settled for the in-betweentacoX is neither ape nor machine; has so far settled for the in-between
 
 
tacoX
 



 
Reply
Posted 2002-11-10, 12:25 AM in reply to LordZpider's post "random numbers"
Quote:
Originally posted by LordZpider
anyone know how something that suppose to take commands and act on those commands, a computer, GENERATE a random numbers?
anyone know how something that is suppose to take commands and act on those commands, ie a computer, GENERATE a sequence of random numbers?

I think thats the idea

no, I dont know
Old
Profile PM WWW Search
DKWicked is neither ape nor machine; has so far settled for the in-betweenDKWicked is neither ape nor machine; has so far settled for the in-between
 
 
DKWicked
 



 
Reply
Posted 2002-11-10, 12:40 AM in reply to LordZpider's post "random numbers"
i think he's asking how something with a set formula and set parameters can prduce something completely random. Well, to the best of my knowlege, its not completely random. there are set parameters(orguidlines i guess u could say) and them a value or figure is selected within those parameters. sort of like rolling a pair of dice, you can never go higher than 12 or lower than 2, but anything in between is random. in a way its still controlled though, because you have to tell yourself to roll the dice.

I hope that was a good analogy, and i hope i was correct and helped you out.
Old
Profile PM WWW Search
Shpook is neither ape nor machine; has so far settled for the in-betweenShpook is neither ape nor machine; has so far settled for the in-between
 
 
Shpook
 



 
Reply
Posted 2002-11-10, 01:37 AM in reply to LordZpider's post "random numbers"
it's... RANDOMIZE!! yes random ness is good
Old
Profile PM WWW Search
Randuin is neither ape nor machine; has so far settled for the in-between
 
 
Randuin
 



 
Reply
Posted 2002-11-10, 11:48 AM in reply to LordZpider's post "random numbers"
What i'm trying to say is simply, how do computers generate random numbers?

and i know there are set parameters. but for example, i tell me calculator de create random intergers, and it just start spitting out random numbers, no patterns... just RANDOM... where do these numbers come from?!
C. M. Ngan
Aerospace Engineering
University of Illinois at Urbana Champaign

Last edited by LordZpider; 2002-11-10 at 11:50 AM.
Old
Profile PM WWW Search
LordZpider is neither ape nor machine; has so far settled for the in-betweenLordZpider is neither ape nor machine; has so far settled for the in-between
 
 
LordZpider
 



 
Reply
Posted 2002-11-10, 08:43 PM in reply to LordZpider's post "random numbers"
Quote:
Originally posted by LordZpider
What i'm trying to say is simply, how do computers generate random numbers?

and i know there are set parameters. but for example, i tell me calculator de create random intergers, and it just start spitting out random numbers, no patterns... just RANDOM... where do these numbers come from?!
They actually come from a formula that's fed from a small clock. That way, the number doesn't stay the same and is random enough for your purposes.
Old
Profile PM WWW Search
Rurouni Storm is neither ape nor machine; has so far settled for the in-betweenRurouni Storm is neither ape nor machine; has so far settled for the in-between
 
 
Rurouni Storm
 



 
Reply
Posted 2002-11-11, 12:23 AM in reply to LordZpider's post "random numbers"
yea, can u be a bit more specific please
C. M. Ngan
Aerospace Engineering
University of Illinois at Urbana Champaign
Old
Profile PM WWW Search
LordZpider is neither ape nor machine; has so far settled for the in-betweenLordZpider is neither ape nor machine; has so far settled for the in-between
 
 
LordZpider
 



 
Reply
Posted 2002-11-11, 09:16 AM in reply to LordZpider's post "random numbers"
A long read

The C++ command for generation

I can't find the actual formulas these functions use as they are copyrighted and kept secret by their creators.
Old
Profile PM WWW Search
Rurouni Storm is neither ape nor machine; has so far settled for the in-betweenRurouni Storm is neither ape nor machine; has so far settled for the in-between
 
 
Rurouni Storm
 



 
Reply
Posted 2002-11-11, 11:27 AM in reply to LordZpider's post "random numbers"
I assume there is a random number generator someplace in Linux, right? Happy hunting
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 



 
Reply
Posted 2002-11-11, 11:30 AM in reply to LordZpider's post "random numbers"
that says nothing, the command is telling C++ to generate a random number, but not actually calculating one.

let's say,

printf ("A number between 0 and 99: %d\n", rand()%100);

and the ouput is 46

where did that 46 come from? no one seems to understand my question. But i think i should have just left it alone after the small clock theory, cuz that's probably as accurate as it will get
C. M. Ngan
Aerospace Engineering
University of Illinois at Urbana Champaign
Old
Profile PM WWW Search
LordZpider is neither ape nor machine; has so far settled for the in-betweenLordZpider is neither ape nor machine; has so far settled for the in-between
 
 
LordZpider
 



 
Reply
Posted 2002-11-11, 11:33 AM in reply to LordZpider's post "random numbers"
IIRC Linux has a random number generator proccess that is accessed by other programs. Also, you can get open source standard libraries for at least the Linux platform, which should either include a random number generator, or a call to the afforementioned.
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 



 
Reply
Posted 2002-11-11, 12:11 PM in reply to LordZpider's post "random numbers"
I have a random number generator its my left and right hands!

573457123762827359 random as hell number!!!!!!

"When the people find that they can vote themselves money, that will herald the end of the republic."- Benjamin Franklin
Old
Profile PM WWW Search
Adrenachrome enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzAdrenachrome enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
Adrenachrome
 



 
Reply
Posted 2002-11-11, 12:13 PM in reply to LordZpider's post "random numbers"
That works!
Old
Profile PM WWW Search
Jamesadin is neither ape nor machine; has so far settled for the in-betweenJamesadin is neither ape nor machine; has so far settled for the in-between
 
 
Jamesadin
 



 
Reply
Posted 2002-11-11, 12:15 PM in reply to LordZpider's post "random numbers"
hres mine



18648746894543454365438674863
Old
Profile PM WWW Search
Hades-Knight is neither ape nor machine; has so far settled for the in-between
 
 
Hades-Knight
 



 
Reply
Posted 2002-11-11, 01:06 PM in reply to LordZpider's post "random numbers"
I know it's a process that has to be seeded... if you use the same seed number, you'll keep getting the same "random" numbers in a sequence. You're right, it's usually the number of seconds elapsed since midnight that's used as the seed number.

RANDOMIZE TIMER
Old
Profile PM WWW Search
BlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzBlueCube enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
BlueCube
 



 
Reply
Posted 2002-11-11, 01:30 PM in reply to LordZpider's post "random numbers"
Actually, it's the number of seconds since midnight or reset, whichever is more recent
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 



 
Reply
Posted 2002-11-11, 02:59 PM in reply to LordZpider's post "random numbers"
so what if u generate 2 random numbers at the same time?
C. M. Ngan
Aerospace Engineering
University of Illinois at Urbana Champaign
Old
Profile PM WWW Search
LordZpider is neither ape nor machine; has so far settled for the in-betweenLordZpider is neither ape nor machine; has so far settled for the in-between
 
 
LordZpider
 



 
Reply
Posted 2002-11-11, 03:17 PM in reply to LordZpider's post "random numbers"
They still won't be generated at the exact same time. A computer cannot do that. It still only processes a single 1 or 0 at a given time.

The time when it reaches the second number will be slightly different, probably enough to make it different. However, if you had two comps running simultaneously at the exact same time, you could get the same number.
Old
Profile PM WWW Search
Rurouni Storm is neither ape nor machine; has so far settled for the in-betweenRurouni Storm is neither ape nor machine; has so far settled for the in-between
 
 
Rurouni Storm
 
 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 03:00 PM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.