answersLogoWhite

0


Best Answer

Random numbers that are generated by a computer are pseudo-random (not really random), but they will pass enough statistical tests for randomness to be useful in simulation random processes. Java has random number generators in the standard libraries.

See the related link if you need more information.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a random number and how are generated?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is there such thing random numbers?

yes, because the number generated is from the computer's CPU database and is selected randomly therefore it must be a random number It depends on how the numbers are generated. If they are based on things in the environment, like noise levels, then yes. If they are solely generated by computer functions, then no, they are pseudo-random numbers, which will be random enough for most purposes.


How do you get a random number from a group of numbers in C?

Random numbers cannot be generated programatically. For pseudo-random numbers use function 'rand'.


How do you get a random number generator on Microsoft Excel?

"=rand()" in a cell gives a random number between 0 and 1. Every time the sheet is recalculated (F9 key) a new random number is generated.


What is a random number?

* A number generated for or part of a set exhibiting statistical randomness. * A random sequence obtained from a stochastic process. * An algorithmically random sequence in algorithmic information theory. * The output of a random number generator. * The least random number (17), according to the Hacker's Jargon File.


What number does visa cards end with?

they all start with 4 but the rest of the number is random computer generated


Has this number been used 108722108854563?

If you generated this number using a random numers list or random numbers generator, then the best guess would be that your use of it is the first.


How to you hold a random number for next deal in java?

Random numbers can be generated using the Math.random() function. For example, the following statements is used to create a random number 0 and 34. int random= (int)(Math.random()*34);


How can random numbers be generated in Java?

Random numbers can be generated in Java using the "random" class. One needs a single "random" object to generate a series of random numbers as a unit.


Why random in matlab vary between 0 and 1?

Many programming languages do the same. Note that you can extend the range, simply by multiplying by some number. For example, if you want a random number between 0 and 10, multiply the random number by 10.


Why do you use pseudorandom numbers in simulation?

Generation of random numbers is not a simple process. In order for a number to be truly random it must be uniformly distributed (each random number in the interval of random numbers has equal chance of being selected), efficiently generated (the random numbers hsould not degenerate into constant values or recycle too frequently) and absent of patterns. Computers can generate random numbers using a mathematical process that artificially creates psuedorandom numbers more efficiently than true random numbers can be generated in a process akin to spinning the roulette wheel.


What is srand in c plus plus?

Srand (seed random ) is used to seed random numbers and is used before calling the rand() or the random number generator. Seeding random numbers ensures that each time the code is executed the number generated is completely random. srand requires one parameter. For most cases it is sufficient to make this parameter time(NULL) [remember to include time.h] as this will seed a new bunch of random number every second


What is the difference between the functions rand random srand and randomize?

RAND: Rand uses a multiplicative congruential random number generator with period232 to return successive pseudo-random numbers in the range 0 to RAND_MAX. Return Value: Rand returns the generated pseudo-random number. RANDOM(): Random returns a random number between 0 and (num-1).random(num) is a macro defined in STDLIB.H. RANDOMIZE(): Randomize initializes the random number generator with a random value. Because randomize is implemented as a macro that calls the time function prototyped in TIME.H, you should include TIME.H when you use this routine SRAND(): The random number generator is reinitialized by calling srand with an argument value of 1.The generator can be set to a new starting point by calling srand with a given seed number.