how does a randomizer in a computer work?
362274
As mentioned most computers use a pseudo-random number generator, but some chipsets or external devices are capable of generating real random number using heat, radio noise, etc.  \n\nTypcially pseudo-random number generators use a variation of the "Linear-Congruential" method. This is a function that generates a finite series of values in a deterministic order. The values appear to be random, because the function is typically such that their is a large number of possible values, before the sequence repeats, and given any sub sequence of values, it is hard to predict the next value in the sequence. \n\nTo generate random numbers this way the a programmer will typically initialize the function with some value that changes from one run of the program to the next. (Such as the current time or the process id).
1101997
<SCRIPT>\nrnd.today=new Date();\nrnd.seed=rnd.today.getTime();\n\n    function rnd() {\n    rnd.seed = (rnd.seed*9301+49297) % 233280;\n    return rnd.seed/(233280.0);\n};\n\n\n    function rand(number) {\n    return Math.ceil(rnd()*number);\n};\n</SCRIPT>\n\nThis is alot more simple then using the IF statements. To create a random number between 1 and 10 use rand(10). To display an random image named banner1.gif to banner10.gif use: \n\n<SCRIPT LANGUAGE=JAVASCRIPT><!--\ndocument.write('<IMG SRC="banner' + rand(10) + '.gif" WIDTH="400" HEIGHT="40">');\n//--></SCRIPT>\n\nIf you have at least 10 or more banners... You shouldnt have a problem with dups. If it is essensial not to dup let me know and I'll update the code.
265863
A computer is actually incapable of generating a true random number! They can simulate randomness though, and most do it by performing a calculation based on the computers internal clock.\n\nHowever, the clock for a thread on most computers starts at 0 when the program is first run, so in many cases you end up with the exact same sequence of "random" numbers everytime the program is used.\n\nTo get round this, programmers can specify a "seed" - a number to start the randomisation process from. In some games, you can chose the seed yourself to generate different puzzles for example (eg Microsofts FreeCell)\n\nWhen I am programming an application that needs true random numbers, I therefore use a simple technique to start the program with a random seed at every execution.\n\nI will choose a moment where the program is waiting for some user input, such as pressing "Next" on a welcome screen, and I will have the program count how long it sits waiting for the user to make that input. Whatever value that is, I make the random number seed for that particlar execution. As the computer counts exceptionally quickly, it is impossible for the user to anticipate what the seed will be by timing when they press the button.\n\nEDIT:\n\nThe poster below is certainly not incorrect in what he is saying, but it is important to note that the precise nature of the random number generator differs depending on the development environment being utilised. In other words, there have been ones developed that conform to both of our descriptions, and probably some others too! On reflection, I would have to concur that the his "mix the bits" model (or Linear Congruential Random Number Generator) is probably more widely utilised today.
310587
You can randomly display an image using javascript.\n\nAssume your images are named 1.jpg, 2.jpg, 3.jpg, etc., up to the maximum image number; and that all those images are in the same directory; in this case, a directory named images under the root of your Web site.\n\nAlso assume this is your img tag you want to have randomly generated in your HTML:\n\n<img name="randimg" id="randimg" src="" alt="" />\n\nThen you first add this onload event to your BODY tag:\n\n<body onLoad="showrandomimg()">\n\nThen this javascript will randomly select the image to display, based on there being 10 images in the directory that stores your random images:\n\n<script language= "javascript">\nfunction showrandomimg() {\nif( document.images ) {\nvar imgcount = 10;\nvar tempimg = new Image();\n\nvar img_id = get_random(imgcount);\nvar imgurl = '/images/' + img_id + '.jpg';\ntempimg.src = imgurl;\ndocument["randimg"].src = tempimg.src\n}\n}\n\nfunction get_random(maxint) {\n    var ranNum= Math.floor( Math.random() * maxint );\n    return ranNum;\n}\n</script>
577315
gotoAndStop(_currentframe+random(500 - _currentframe))
875755
Try tracing a very small example on paper to gain some insight into this.  Perhaps just two or three elements with at least two equal keys.  Then reverse the order of the two equal keys in the input set, and see if you still get the same result.  Tracing the algorithm like this will get you the answer in a manner that should give you some confidence.
483034
In general, The system time is known for the best seed for Random no .If You want to add more then manipulate it by the memory used or available or some kind of technique .
871607
A simple random sample is a specific kind of random sample.  A random sample uses randomization to pick your sample.  That can be done in a number of ways.  A simple random sample is basically like selecting names from a hat.  Every subject in the population has an equally likely chance of being in the sample, and every possible sample has an equally likely chance of being selected..  Other possible ways to take a random sample are systematic sampling (where you randomly select a starting point, and then pick every nth subject), cluster sampling (where subjects are separated into clusters, then all of the subjects in a random sample of clusters are put in the sample), and stratified sampling (where subjects are put into strata, and then a random sample is taken from each strata).\n\nNon random samples do not use randomization.  Online polls are an example of a nonrandom sample.  The person taking the sample does not take an effort to pick the sample; people choose themselves to be in the sample.\n\nYour example is a simple random sample.  It's just like drawing from a hat.\n\nIn short, simple random samples are random samples, but random samples are not necessarily simple random samples.
577182
Randomality is always an interesting topic from a computer science standpoint.  Check out this excerpt from wikipedia:\n\n"What constitutes a "true" random number is often difficult to decide, since the concept of randomness is itself somewhat difficult to define. What is universally agreed is that any "random number generator" based solely on deterministic computation cannot be regarded as a "true" random number generator, since its output is inherently predictable. John von Neumann once famously said "Anyone who uses software to produce random numbers is in a state of sin" (some sources say "arithmetic methods" instead of "software")."\n\nhttp://en.wikipedia.org/wiki/Random_number_generator
315772
You simply type: \n=rand(25,25) and then enter.
734599
kbhit will return a integer to you, go to asciitable.com to find out what des each interger corresponds to what key.\n\ngood luck
168265
Technically generating a random number is absolutly impossible on a computer as there is a finite amount of possible numbers (from a finite amount of space) and so some number must be repeated at some point.  In computer science we define a number random if it meets two criteria:  It has uniform distribution - the frequency of occurance of any number is approximately the same, and independence - no value can be inferred from the others.  The most common algorithm used is based off of time (as your question suggests) and is known as a linear congruential generator originaly devised by Lehmer but it only generates pseudorandom numbers.  This is generated by the formula:\n\nXn+1 = (aXn + c) mod m... where Xn is the nth random number generated, a the multiplies, c the increment, m the modulus.  Note that X0 is the seed... so time.\n\nThe best computational random number generator is known as the blum blum shub generator (yes its a strange name) .  This is based off of some fairly advanced mathmatics but the general idea is that you choose two number p and q such that p is congruent to q is congruent to 3 modulus 4.  then you choose some number s that is relativly prime to n (n = p * q). this is the same as saying niether p nor q is a factor of s.  then we calculate the see from this by squaring s and taking the modulous n of that.  now we run a loop that each time resquares the last number mod n and we steal the most significant digit from each iteration.  This is our random number sequence.\n\nHope this helps and wasnt too technical... I tried to avoid the more complex math.
537896
http://www.php.net/manual/en/function.rand.php\nhttp://www.php.net/manual/en/ref.array.php\n\nNote, I haven't tested this code, but to get unique random numbers, do something like this:\n\n$numbers  = array();\n\nwhile (count($numbers) <10) {\n\n$rnum = rand(1,1000);\n\nif( array_search( $rnum,$numbers ) === false) {\n$numbers[] = $rnum;\n}\n\n}
1154995
Well, trial software usually have a built-in function where you can enter in a serial number (key) to unlock the full software.\n\nWhen a serial is entered, the software doesn't go online to check if it's correct, but merely checks a certain algorithm the serial is built upon. If the algorithm and serial number match, the serial is considered valid.\n\nSo why do keygen's work? Well, pirates figure out the algorithm of a particular software, then make a random serial generator based upon the algorithm used. Then a user receives a random serial number that works for the program!\n\nHowever, this does not usually work with activation (where the software connects to the internet to check for validity). For example, you can install Windows XP using a keygen, but if you want to activate it, it won't work unless you use a valid key. =)\n\nHope this helped.
1168745
MULTIPLEXER is a combinational circuit which can select any one of the inputs and route it to the output\n       DECODER is  used 2 distribute the data on a line to any one of the output line according to the binary code on data select lines\n \n  i thnk dis will do
903187
To get a random number in excel, you do use the =RAND() function.\n\nTo get whole numbers from 0 to 10 use =ROUND(RAND()*10,0)\n\nTo get whole numbers from 0 to 100 use =ROUND(RAND()*100,0)\n\nI hope this helps!
599678
Yes, it's a program to makes things interactive.\n\nhttp://www.google.com/search?btnI=I%27m+Feeling+Lucky&q=download+java