Number generator from 1 to 10. Random number generator Excel in functions and data analysis

  • 28.06.2020

We have a sequence of numbers consisting of practically independent elements that obey a given distribution. As a rule, uniform distribution.

You can generate random numbers in Excel in different ways and ways. Let's consider only the best of them.

Random Number Function in Excel

  1. The RAND function returns a random, uniformly distributed real number. It will be less than 1, greater than or equal to 0.
  2. The RANDBETWEEN function returns a random integer.

Let's look at their use with examples.

Sampling random numbers using RAND

This function requires no arguments (RAND()).

To generate a random real number in the range from 1 to 5, for example, use the following formula: =RAND()*(5-1)+1.

The returned random number is distributed uniformly over the interval.

Each time the worksheet is calculated or the value in any cell in the worksheet changes, a new random number is returned. If you want to save the generated population, you can replace the formula with its value.

  1. Click on the cell with a random number.
  2. In the formula bar, select the formula.
  3. Press F9. AND ENTER.

Let's check the uniformity of the distribution of random numbers from the first sample using a distribution histogram.


The range of vertical values ​​is frequency. Horizontal - “pockets”.



RANDBETWEEN function

The syntax for the RANDBETWEEN function is (lower bound; upper bound). The first argument must be less than the second. Otherwise the function will throw an error. The boundaries are assumed to be integers. The formula discards the fractional part.

Example of using the function:

Random numbers with precision 0.1 and 0.01:

How to make a random number generator in Excel

Let's make a random number generator that generates a value from a certain range. We use a formula like: =INDEX(A1:A10,INTEGER(RAND()*10)+1).

Let's make a random number generator in the range from 0 to 100 in steps of 10.

You need to select 2 random ones from the list of text values. Using the RAND function, we compare text values ​​in the range A1:A7 with random numbers.

Let's use the INDEX function to select two random text values ​​from the original list.

To select one random value from the list, use the following formula: =INDEX(A1:A7,RANDBETWEEN(1,COUNT(A1:A7))).

Normal distribution random number generator

The RAND and RANDBETWEEN functions produce random numbers with a uniform distribution. Any value with the same probability can fall into the lower limit of the requested range and into the upper one. This results in a huge spread from the target value.

A normal distribution implies that most of the generated numbers are close to the target number. Let's adjust the RANDBETWEEN formula and create a data array with a normal distribution.

The cost of product X is 100 rubles. The entire batch produced follows a normal distribution. A random variable also follows a normal probability distribution.

Under such conditions, the average value of the range is 100 rubles. Let's generate an array and build a graph with a normal distribution with a standard deviation of 1.5 rubles.

We use the function: =NORMINV(RAND();100;1.5).

Excel calculated which values ​​were within the probability range. Since the probability of producing a product with a cost of 100 rubles is maximum, the formula shows values ​​close to 100 more often than others.

Let's move on to plotting the graph. First you need to create a table with categories. To do this, we divide the array into periods:

Based on the data obtained, we can generate a diagram with a normal distribution. The value axis is the number of variables in the interval, the category axis is periods.

Description of the generator

Our free online generator is designed to generate random integers. It can easily be used, for example, to determine the winning number of your lottery, draw or competition.

Number of simultaneously generated numbers: from 1 to 999.

By default, one number is generated.

Available number range: from 1 to 99,999,999 inclusive. In this case, the final value of the range must be greater than the initial value. By default, the range from 1 to 100 is used to generate a random number.

The generated numbers can be sorted: randomly (by default), descending, and ascending.

When displaying numbers in the result block, you can use the following delimiters: space (default), comma, and the combination "comma+space". When generating several numbers, the same ones may appear. By default, duplicates are removed. If you assume that the results will have the same numbers, then simply remove the bird from the field.

"Repetition of numbers"

If you need to return the values ​​of all fields to their original state, click the "Reset" button.

A few words about accidents

As surprising as it may be for the average person, random numbers play a very important role in a variety of areas of human activity that require sequences of random numbers that no one can predict. The most familiar examples to us are lotteries or online casinos. After all, if such sequences turn out to be not completely random and someone can trace the order in them, he can easily use this knowledge to his advantage. So in 1873, British engineer Joseph Jagger, along with six of his assistants, went to the casino and began recording the numbers on the roulette wheels. Imagine, but he discovered that on one of the roulettes some numbers appear noticeably more often than others, i.e. are not so random! That's when he started betting money on these numbers. And although the casino owners suspected something was wrong and tried to somehow correct the situation by moving the tables from place to place, this did not help them. Jagger won a total of about $5 million from them at today's rates.

Random numbers are also needed in cryptography, for example, to encrypt network traffic or carry out banking transactions. If the generated sequences of random numbers have easily detectable patterns, attackers will be able to intercept outgoing traffic and harm the user's computer or steal his confidential data.

In addition, random numbers are used in various scientific and engineering fields for computer modeling of real natural processes, in statistics, which itself is based on chance, in various gambling games (not only roulette requires chance), etc.

As you can see, accidents are in demand. But is it easy to obtain truly high-quality random sequences of numbers or symbols? Let us say right away that it is theoretically possible to create such a generator, but it is very difficult to do in practice. That is why numbers obtained using various mathematical algorithms are called pseudorandom. There are many varieties of pseudorandom number generators that use the most complex algorithms, but they are still not perfectly random. However, the more different initial conditions that make it difficult to predict each subsequent number in the sequence that are used in the generator, the more reliable it is.

So where do truly random events happen? At the moment, science believes that the events of quantum mechanics should be considered random. According to the Heisenberg uncertainty principle, we cannot measure all the necessary parameters of a quantum object with any great accuracy. Moreover, in principle we cannot, and not because we lack the technical capabilities. And since it is impossible to measure all the initial parameters, it means that the exact outcome of the process cannot be predicted.

Thus, quantum generators should be considered the highest quality random number generators, i.e. those that use quantum processes in their work.

A clear and convenient online number generator, which has recently become popular. It became most widespread during prize draws on social networks among users.

It is also popular in other areas. We also have either passwords and numbers.

Our online random number generator.

Our randomizer generator does not require downloading it to your personal PC. Everything happens in online number generator mode. Just specify parameters such as: online number range in which numbers will be randomly selected. Also indicate the number of numbers that will be selected.

For example, you have a VKontakte group. In the group you will win 5 prizes among the number of participants who repost the post. Using a special application, we received a list of participants. Each was assigned its own serial number for online numbers.

Now we go to our online generator and indicate the range of numbers (number of participants). For example, we set that 5 numbers are needed online, since we have 5 prizes. Now click the generate button. Then we get 5 random numbers online, ranging from 1 to 112 inclusive. The 5 numbers generated online will correspond to the serial number of the five participants who became the winners of the drawing. Everything is simple and convenient.

Another plus of the random number generator is that all numbers online are issued randomly. That is, it is not possible to influence it, or to calculate what number will be next. What does it mean to say, honest and reliable, and the administration, which gives away prizes using our free generator, is honest and decent in the person of the competition participants. And if you are in doubt about any decision, then you can use our

Why is the random number generator the best?

The fact is that number generator online available on any device and always online. You can quite honestly generate any number for any idea you have. And use the same for the project random number generator online. Especially if you need to determine the winner of a game or for another number online. The fact is that random number generator generates any numbers completely randomly without algorithms. It's essentially the same as for numbers.

Random number generator online for free!

Random number generator online free for everyone. You don't need to download or buy any random number generator online for the draw. You just need to go to our website and get the random result you need. We not only have random number generator but also needed by many and will definitely help you win the lottery. A true online random number generator for lotteries is absolute randomness. Which our site is able to provide you with.

Random number online

If you are looking for a random number online, then we have created this resource just for you. We are constantly improving our algorithms. You will get the real one here random number generator. It will provide any needs like the random generator you need completely free of charge and at any time. Generate random numbers online with us. Always be sure that every number generated is completely random.

Random number generator

Our random number generator randomly selects numbers completely at random. It doesn't matter what day or hour you have on your computer. This is a real blind choice. The random generator simply shuffles all the numbers in a random order. And then it randomly selects the number of random numbers you specify from them. Sometimes numbers can be repeated, which proves the complete randomness of the random number generator.

Random online

Random is the surest option for a draw. The online generator is truly a random choice. You are protected from any influence on the selection of a random number. By filming the process of random online selection of the winner on video. That's all you need. Organize fair draws online with our online number generator. You get winners and satisfied players. And we are glad that we were able to please you with our random generator.

To generate random numbers in the range you need, it is best to use an online Random Number Generator. Having a large number of options will allow you to select the required number of random numbers, as well as specify the final and initial values.

Online number generator (randomizer) instructions:

By default, 1 number is entered into the random number generator. If you change the application settings, you can simultaneously generate up to 250 random numbers. First you need to set the range. The maximum number value is 9,999,999,999. The random number generator allows you to sort the numbers in descending, ascending, or random order.

To display the result, you can use different delimiters: semicolon, comma, and space. In addition, repetitions may occur. The “Exclude repetitions” option will allow you to get rid of duplications. You can also send a link to the calculations made via messenger or email by copying the “Link to result”.