{"id":375,"date":"2018-06-28T08:47:04","date_gmt":"2018-06-28T08:47:04","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=375"},"modified":"2024-03-28T13:18:30","modified_gmt":"2024-03-28T13:18:30","slug":"random-number-generator","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/","title":{"rendered":"Random Number Generator in Excel"},"content":{"rendered":"\n

Randomness is a lack of pattern or predictability in events. It can be observed in nature, for example in the thermal change or decay of radioactive material. Computers, on the other hand, are things that are designed to eliminate randomness from the results because we want them to be predictable.<\/p>\n\n\n\n

For that reason, we can\u2019t really create a list of true random numbers using Excel or any other computer application. What we really mean by saying random, when talking about computers, is a pseudo-random number, a number that is generated using a specific pattern.<\/p>\n\n\n\n

To generate a list of pseudo-numbers we need a so-called \u201cseed\u201d. The seed is a number that is used to initialize a pseudo-random number generation.<\/p>\n\n\n\n

The repeatability of a pattern is determined by the length of the seed used in the process.<\/p>\n\n\n\n

For example, if you use a two-digit seed, the algorithm can produce at most 100 numbers before repeating the cycle. A three-digit seed will expand this number to 1000, 4 digits to 10000, and so on.<\/p>\n\n\n\n

Take a look at these two bitmaps. The first one is generated using the random.org<\/a> website. The site offers true randomization because it uses data generated by a natural process, such as atmospheric noise.<\/p>\n\n\n\n

Random bitmap<\/h3>\n\n\n\n
\"\"<\/figure>\n\n\n\n

The second one uses the PHP rand() function. The seed number is not long enough, so we can observe the repeating pattern.<\/p>\n\n\n\n

Pseudo-random bitmap<\/h3>\n\n\n\n
\"\"<\/figure>\n\n\n\n

First, take a look at advanced pseudo-random generation and then I will show you how you can use a bit of the VBA code to generate real random numbers.<\/p>\n\n\n\n

RAND() function<\/h2>\n\n\n\n

The most popular way to generate a pseudo-random number is by using the RAND()<\/strong> function. This function doesn\u2019t use any parameter and returns a decimal value between 0 and 1.<\/p>\n\n\n\n

=RAND() * (65-18)<\/pre>\n\n\n\n

It means: Generate a random number between 0 and 1. Then multiply it by 65 minus 18 (which symbolize the maximum and minimum numbers). Now, the generated value is a number between<\/a> 0 and 47. Let\u2019s add a minimum number of years, which is 18.<\/p>\n\n\n\n

=RAND() * (65-18) + 18<\/pre>\n\n\n\n

Each time you press F9<\/span><\/strong> you will get a sequence of pseudorandom numbers:<\/p>\n\n\n\n

29.54275<\/p>\n\n\n\n

59.36941<\/p>\n\n\n\n

42.83664<\/p>\n\n\n\n

21.53878<\/p>\n\n\n\n

Of course, no one will say that he has 29,54275 years. Let\u2019s use the ROUND()<\/strong> function to make integers from these numbers.<\/p>\n\n\n\n

=ROUND(RAND() * (65-18) + 18, 0)<\/pre>\n\n\n\n

Press F9 to generate a list of random numbers between 18 and 65.<\/p>\n\n\n\n

38<\/p>\n\n\n\n

37<\/p>\n\n\n\n

52<\/p>\n\n\n\n

59<\/p>\n\n\n\n

RANDBETWEEN() function<\/h2>\n\n\n\n

The easier and faster method to achieve the same result is by using the RANDBETWEEN function(). This function will return an integer value that is between two arguments: the lowest and the highest number. For our example, it will be:<\/p>\n\n\n\n

=RANDBETWEEN(18, 65)<\/pre>\n\n\n\n

Volatile and static numbers.<\/p>\n\n\n\n

The RAND<\/strong> and RANDBETWEEN<\/strong> functions are volatile. It means that each time you change anything in your worksheet the value is recalculated. There are two simple ways you can work around this problem.<\/p>\n\n\n\n

    \n
  1. The first one is to copy and paste<\/a> the generated numbers as values.<\/li>\n<\/ol>\n\n\n\n
    \"\"<\/figure>\n\n\n\n
      \n
    1. To use the send method, go to FORMULAS >> Calculation >> Calculation Options<\/strong> and choose Manual.<\/strong> Now, when you change something in the worksheet, the values stay, but when you use the F9 key, the values will be recalculated.<\/li>\n<\/ol>\n\n\n\n

      Randomize the list in VBA<\/h2>\n\n\n\n

      If you want your cell not to be recalculated even if you use the F9 key, you have to use VBA.<\/p>\n\n\n\n

      First, press Left Alt + F11<\/span><\/strong> to open Visual Basic Editor, then create a new module<\/a> in the project window and enter this code:<\/p>\n\n\n\n

      Function normalRand()\nApplication.Volatile True\nnormalRand = Rnd\nEnd Function<\/pre>\n\n\n\n

      The code will generate a number. It works the same way as Excel\u2019s RAND<\/strong> function, so the numbers will change every time you change anything in the worksheet.<\/p>\n\n\n\n

      Change this line:<\/p>\n\n\n\n

      Application.Volatile True<\/pre>\n\n\n\n

      To this one:<\/p>\n\n\n\n

      Application.Volatile False<\/pre>\n\n\n\n

      Now, when you generate a new number, the value will stay the same. You can also drop this line because of the Application. The volatile procedure is, by default, set to false.<\/p>\n\n\n\n

      If you want to generate a list of numbers, you can use the AutoFill <\/a>feature the same way you use it for normal Excel functions.<\/p>\n\n\n\n

      Random Selection<\/h2>\n\n\n\n

      Example 1: Randomly assign employees<\/h3>\n\n\n\n

      In this example, we will randomly assign workers to work on a project for the next 10 days. This is what the example looks like.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      Now, we will try to fill the cells from B2<\/strong> to B11<\/strong> with random names from the Name<\/strong> column. In order to do this, we will use the following formula.<\/p>\n\n\n\n

      =INDEX($E$2:$E$4, RANDBETWEEN(1,3))<\/pre>\n\n\n\n

      It will randomly select one name from cells E2<\/strong> to E4<\/strong> (absolute cell reference) and insert it into cell B2.<\/strong> Use the AutoFill<\/a> feature to fill the remaining cells.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      Press F9<\/strong> to generate a different combination.<\/p>\n\n\n\n

      Random Sort<\/h2>\n\n\n\n

      I will show you an example you can use to sort a list of values in Excel in a random way.<\/p>\n\n\n\n

      Example 2:<\/h3>\n\n\n\n

      Suppose you have a list of names of friends you want to call, but you cannot decide which one to call first. In this difficult situation, you decided to sort the names in a random order.<\/p>\n\n\n\n

      First, fill out the names.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      Now change FORMULAS >> Calculation >> Calculation Options<\/strong> to manual and enter =RAND()<\/strong> in cell B1.<\/strong> Fill the rest of the cells (B2:B10<\/strong>), then sort the table by column B. Because we changed the Calculation Options to the manual, the values generated by the RAND<\/strong> function won\u2019t recalculate.<\/p>\n\n\n\n

      The Random Number Generation tool<\/h2>\n\n\n\n

      To use this tool, first, you need to install the add-in, called the Analysis ToolPak. Go to FILE >> Options >> Add-Ins<\/strong>. Select Analysis Toolpak and click Go\u2026<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      A new window will appear.<\/p>\n\n\n\n

      Check Analysis Toolpak and click OK.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      When you do this, a new position will appear in the ribbon, in the data tab<\/a>. Click the Data Analysis button in DATA >> Analysis<\/strong>. In the new window click \u201cRandom Number Generation\u201d.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      The new window called the Random Number Generation<\/strong> will appear:<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      In the Number of Variables<\/strong> you can enter the number of columns and in the Number of Random Numbers <\/strong>the number of rows.<\/p>\n\n\n\n

      The following types of distributions are available in Analysis Toolpak:<\/p>\n\n\n\n

      Uniform distribution<\/h3>\n\n\n\n

      The uniform distribution will create random numbers between entered values. In our case, these will be numbers between 10 and 40. This method is similar to the RANDBETWEEN<\/strong> function.<\/p>\n\n\n\n

      Normal distribution<\/h3>\n\n\n\n

      Normal distribution means that most of the numbers are close to average while relatively few examples to the one extreme or the other. When you have enough numbers this distribution will generate a \u201cbell curve\u201d chart.<\/p>\n\n\n\n

      Here, we have two textboxes: mean<\/a><\/strong> and standard deviation<\/strong><\/a>.<\/p>\n\n\n\n

      Let\u2019s create two examples, one with a mean that equals 1 and the second one with a mean that equals 3. The mean will represent the average height of men. Let\u2019s suppose that the standard height for men is 180 cm (about 6 feet).<\/p>\n\n\n\n

      Example 3:<\/h3>\n\n\n\n

      We will create 10000 numbers in one row. Fill text boxes as shown in the image below.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      Sort the results. In cell B1<\/strong> enter the following formula.<\/p>\n\n\n\n

      =NORM.DIST(A1,180,1,FALSE)<\/pre>\n\n\n\n

      Click the bottom right corner of the cell to fill in other cells.<\/p>\n\n\n\n

      Select all the cells and choose INSERT >> Charts >> Recommended Charts<\/strong>. Excel chose a scatter chart. It will be great for the data. Because we have 10 thousand numbers it will look like a line chart<\/a> in such a small space. But as you can see we have one extreme to the left, so we can see this is a scatter chart.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      Example 4:<\/strong><\/h3>\n\n\n\n

      Change the mean to 3, generate 10 thousand results and see how the chart differs from the previous one.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      It may seem steeper than the previous one. But take a look at the scale of the x-axis.<\/p>\n\n\n\n

      The results in both charts are between 150 and 200. Now change the scale. To do this, right-click on the x-axis and select the format axis.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      Now, as you can see the higher the mean, the flatter the chart.<\/p>\n\n\n\n

      Bernoulli distribution<\/h3>\n\n\n\n

      Example 5:<\/h3>\n\n\n\n

      A good example of Bernoulli distribution is tossing a coin. You have a 50% chance of throwing each side of a coin. So in this example, you set the probability to 50% (0.5).<\/p>\n\n\n\n

      Example 6:<\/h3>\n\n\n\n

      Michael Jordan\u2019s average effectiveness of free throws was 83.5% (.835). Set this parameter in the text box to generate a series of numbers.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      You will get a series of numbers where about 83.5% will be successes (1) and about 16.5% failures (0).<\/p>\n\n\n\n

      The more numbers you generate the result will be closer to this number.<\/p>\n\n\n\n

      Binomial distribution<\/h3>\n\n\n\n

      In the Bernoulli distribution, I wrote that the more numbers you generate, the result will be closer to the p Value<\/strong> you chose. In Binomial distribution, you can set two values, the p Value, which is the probability of success, and the number of trials.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      Example 7:<\/h3>\n\n\n\n

      We use coin flipping as an example. We use 10 trials and generate 6 results.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      Because we used only 10 tries, the results are far from 50%.<\/p>\n\n\n\n

      Example 8:<\/h3>\n\n\n\n

      Now let\u2019s set the number of trials to 100.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      Now the numbers are much closer to 50%- between 46% and 54%.<\/p>\n\n\n\n

      Example 9:<\/h3>\n\n\n\n

      In the last example let\u2019s use 10000 trials.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      Because we used a lot of tries the numbers are much closer to 50%- between 49.71% to 51.34%.<\/p>\n\n\n\n

      Poisson function<\/h3>\n\n\n\n

      First, let\u2019s talk about the POISSON<\/strong> function. This function will predict the probability of occurring the exact number of events.<\/p>\n\n\n\n

      Look at the following example:<\/p>\n\n\n\n

      Example 10:<\/h3>\n\n\n\n

      Let\u2019s say that a restaurant on average sells 6 meals an hour. You want to know what is the probability of selling a particular number of meals.<\/p>\n\n\n\n

      Fill cells<\/a> from A2<\/strong> to A14<\/strong> with numbers. In cell B2<\/strong> enter the following formula<\/p>\n\n\n\n

      =POISSON.DIST(A2,6,FALSE)<\/pre>\n\n\n\n

      This means: checking the probability of serving a meal in cell A2<\/strong> when the average number of meals is 6.<\/p>\n\n\n\n

      Insert the recommended chart<\/a> to visualize the chances.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      Poisson distribution<\/h3>\n\n\n\n

      Now we use the Poisson distribution in the Random Number Generator.<\/p>\n\n\n\n

      Example 11:<\/h3>\n\n\n\n

      Fill text boxes, as shown in the image below.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      The application will generate 10 numbers where the average number of meals is six. It will take into account the probability of the POISSON<\/strong> function.<\/p>\n\n\n\n

      I received the following results.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      Patterned Distribution<\/h3>\n\n\n\n

      This distribution is called semi-random distribution because it\u2019s more like a tool to fill a series of numbers than a random numbers generator. A number of variables and a Number of Random Numbers are not important in this distribution.<\/p>\n\n\n\n

      Let\u2019s fill in the numbers as shown in the image below.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      This will give us the following result.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      Let\u2019s analyze this example.<\/p>\n\n\n\n

      The program creates numbers from 1<\/strong> to 8<\/strong> in steps of 3<\/strong>. This means that it will create numbers: 1, 4, 7,<\/strong> and 8<\/strong>. It created 8 instead of 10 because this is the last number. Excel will repeat each number twice, so we will get 1, 1, 4, 4, 7, 7, 8, 8<\/strong>. The last thing to do is to repeat the sequence twice. We will get the following results: 1, 1, 4, 4, 7, 7, 8, 8, 1, 1, 4, 4, 7, 7, 8, 8<\/strong>. And that\u2019s our result.<\/p>\n\n\n\n

      Discrete distribution<\/h3>\n\n\n\n

      The discrete distribution will get values from the two columns you entered in Excel. In the first column are possible outcomes and in the second column are the probabilities of these outcomes.<\/p>\n\n\n\n

      Example 12:<\/h3>\n\n\n\n

      In the first example, we will create a table with the probability of tossing different numbers of heads. We will use two flips.<\/p>\n\n\n\n

      Let\u2019s take a look at the possible outcomes:<\/p>\n\n\n\n

      HH<\/p>\n\n\n\n

      HT<\/p>\n\n\n\n

      TH<\/p>\n\n\n\n

      TT<\/p>\n\n\n\n

      You have a 25% chance for each flip.<\/p>\n\n\n\n

      Number of heads<\/td>Probability<\/td><\/tr>
      0 (TT)<\/td>0.25<\/td><\/tr>
      1 (HT, TH)<\/td>0.5<\/td><\/tr>
      2 (HH)<\/td>0.25<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

      CAUTION<\/h3>\n\n\n\n

      The sum of probability should always be 1.<\/p>\n\n\n\n

      Create a table and insert the values:<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      Open the Random Number Generator window and choose a discrete distribution. Select cells from A1<\/strong> to B3. <\/strong>Generate 10 numbers.<\/p>\n\n\n\n

      \"\"<\/figure>\n\n\n\n

      The result in my case is as follows: 1, 1, 1, 1, 1, 0, 0, 1, 2, 1<\/strong>.<\/p>\n\n\n\n

      Generate real random numbers<\/h2>\n\n\n\n

      We can’t generate real random numbers in Excel, so first, let’s generate these numbers in random.org and then enter them into Excel cells. But we don’t have to do this by hand. Let\u2019s use VBA, so we will be able to generate these numbers with a single click.<\/p>\n\n\n\n

      Take a look at the following function. More information about functions and subroutines can be found at this link<\/a>.<\/p>\n\n\n\n

      Function GenRealRand(NUM As Long, MIN As Long, MAX As Long) As Variant\nDim obj As Object\nDim siteURL As String\nDim strResult\n \n    siteURL = \"http:\/\/www.random.org\/integers\/\"\n    siteURL = siteURL & \"?num=\" & NUM & \"&min=\" & MIN & \"&max=\" & MAX & \"&col=1&base=10&format=plain&rnd=plain\"\n    Debug.Print siteURL\n    Set obj = CreateObject(\"MSXML2.ServerXMLHTTP\")\n     \n    With obj\n        .Open \"GET\", siteURL, False\n        .send\n        strResult = .responseText\n        GenRealRand = Split(strResult, Chr(10))\n    End With\nEnd Function<\/pre>\n\n\n\n

      1.<\/strong> We created the genRealRand<\/strong> function, which takes 3 arguments.<\/p>\n\n\n\n

      2-4.<\/strong> Three variables are declared.<\/p>\n\n\n\n

      6.<\/strong> This is the first part of the link.<\/p>\n\n\n\n

      7.<\/strong> In the second part, enter the number of values to generate (NUM), minimum values (MIN), and maximum values (MAX) The following URL will generate 10 numbers with values between 1 and 100.<\/p>\n\n\n\n

      http:\/\/www.random.org\/integers\/?num=10&min=1&max=100&col=1&base=10&format=plain&rnd=plain<\/p>\n\n\n\n

      9.<\/strong> The object MSXML2.ServerXMLHTTP<\/strong> can be used to retrieve data from a website.<\/p>\n\n\n\n

      12-13.<\/strong> VBA executes the URL<\/p>\n\n\n\n

      14.<\/strong> The result from the page is saved to strResult.<\/p>\n\n\n\n

      15.<\/strong> The function returns a list of numbers separated by a new line (chr(10)).<\/p>\n\n\n\n

      This function will be executed inside the following subroutine.<\/p>\n\n\n\n

      Sub RealRand()\n    Dim numberOfValues As Long\n    Cells.Clear\n    numberOfValues = 10\n    Range(\"A1:A\" & numberOfValues).Value = Application.Transpose(GenRealRand(numberOfValues, 1, 100))\nEnd Sub<\/pre>\n\n\n\n

      2.<\/strong> numberOfValues is the number of generated values.<\/p>\n\n\n\n

      3.<\/strong> Cells.Clear clears worksheet before generating new numbers (be careful to use it inside a new worksheet)<\/p>\n\n\n\n

      4.<\/strong> The number of values to generate.<\/p>\n\n\n\n

      5.<\/strong> The number of values that are inserted both into the range and into the GenRealRand function. For example, if numberOfValues is 10, then the function will generate 10 values and insert them into the range (A1:A10).<\/p>\n","protected":false},"excerpt":{"rendered":"

      Randomness is a lack of pattern or predictability in events. It can be observed in nature, for example in the thermal change or…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[190],"yoast_head":"\nRandom Number Generator in Excel<\/title>\n<meta name=\"description\" content=\"Learn about the differences between pseudo-random and truly random numbers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Random Number Generator in Excel\" \/>\n<meta property=\"og:description\" content=\"Learn about the differences between pseudo-random and truly random numbers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-28T08:47:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-28T13:18:30+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/06\/random-bitmap.png\" \/>\n<meta name=\"author\" content=\"Tomasz Decker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomasz Decker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"16 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/\"},\"author\":{\"name\":\"Tomasz Decker\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"headline\":\"Random Number Generator in Excel\",\"datePublished\":\"2018-06-28T08:47:04+00:00\",\"dateModified\":\"2024-03-28T13:18:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/\"},\"wordCount\":2257,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/06\/random-bitmap.png\",\"keywords\":[\"pinterest\"],\"articleSection\":[\"examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/\",\"url\":\"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/\",\"name\":\"Random Number Generator in Excel\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/06\/random-bitmap.png\",\"datePublished\":\"2018-06-28T08:47:04+00:00\",\"dateModified\":\"2024-03-28T13:18:30+00:00\",\"description\":\"Learn about the differences between pseudo-random and truly random numbers.\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/#primaryimage\",\"url\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/06\/random-bitmap.png\",\"contentUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/06\/random-bitmap.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Random Number Generator in Excel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/officetuts.net\/excel\/#website\",\"url\":\"https:\/\/officetuts.net\/excel\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/officetuts.net\/excel\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\",\"name\":\"Tomasz Decker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"caption\":\"Tomasz Decker\"},\"logo\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\"},\"description\":\"Spreadsheet and Python enthusiast.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Random Number Generator in Excel","description":"Learn about the differences between pseudo-random and truly random numbers.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/","og_locale":"en_US","og_type":"article","og_title":"Random Number Generator in Excel","og_description":"Learn about the differences between pseudo-random and truly random numbers.","og_url":"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/","article_published_time":"2018-06-28T08:47:04+00:00","article_modified_time":"2024-03-28T13:18:30+00:00","og_image":[{"url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/06\/random-bitmap.png"}],"author":"Tomasz Decker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tomasz Decker","Est. reading time":"16 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/"},"author":{"name":"Tomasz Decker","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"headline":"Random Number Generator in Excel","datePublished":"2018-06-28T08:47:04+00:00","dateModified":"2024-03-28T13:18:30+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/"},"wordCount":2257,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/06\/random-bitmap.png","keywords":["pinterest"],"articleSection":["examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/","url":"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/","name":"Random Number Generator in Excel","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/06\/random-bitmap.png","datePublished":"2018-06-28T08:47:04+00:00","dateModified":"2024-03-28T13:18:30+00:00","description":"Learn about the differences between pseudo-random and truly random numbers.","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/#primaryimage","url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/06\/random-bitmap.png","contentUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/06\/random-bitmap.png"},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/examples\/random-number-generator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"Random Number Generator in Excel"}]},{"@type":"WebSite","@id":"https:\/\/officetuts.net\/excel\/#website","url":"https:\/\/officetuts.net\/excel\/","name":"","description":"","publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/officetuts.net\/excel\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42","name":"Tomasz Decker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","caption":"Tomasz Decker"},"logo":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/"},"description":"Spreadsheet and Python enthusiast."}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/375"}],"collection":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=375"}],"version-history":[{"count":12,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/375\/revisions"}],"predecessor-version":[{"id":15515,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/375\/revisions\/15515"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}