# Excel Random Number Generator

There may be many cases where you need to create a random number generator. Luckily, Excel has a few native functions that will help achieve your goals. If you want to learn more about Excel,  Get 60% Off Online Excel Courses

## RAND()

When you type the RAND() function in a cell  you will get a number that is a random integer from 0 to 1. In theory, this means that approximately 50 percent of the time you will get a number that is less than 0.50 and the other 50 percent of the time you will get a number that is above 0.50. To get an idea of how this works lets take a look at the data below.

The RAND function takes no arguments to use it simply type =RAND() Once you have this function it will randomly generate a number,  simply press F9  key to generate a new random number. You can see from the image above that you only have to enter the formula to generate a random number from 0 to 1.

However, you might want to extend the range of your randomly generator number. You can do this by using another equation in Excel that deals with random numbers with a custom defined ranges. This is called RANDBETWEEN

## RANDBETWEEN()

The RANDBETWEEN(bottom, top) function is very similar to the RAND function. However, it takes a range which is set by a top and bottom number that is defined by the user. So, if you wanted to chose a random number between  1 and 360,  you would use the the following formula below

=RANDBETWEEN(1,360) ## BONUS: RANDOM NAME GENERATOR

Create a random name generator in Excel with RANDBETWEEN Function.

So we have covered the random number generator. Now lets learn how to use what you have gained from the RANDBETWEEN function to generate names or any text by using the CHOOSE function. Using the CHOOSE function allows you to set an index and value associated with at index. So, for example 1 = Bill, 2 = Steve, and so on.  Combing these looks like the below.

=CHOOSE(RANDBETWEEN(1,4),”Bill”,”Steve”,”Frank”,”James”)
{"ft_lang_label":"__label__en","ft_lang_prob":0.8940748,"math_prob":0.9859099,"size":1977,"snap":"2023-40-2023-50","text_gpt3_token_len":475,"char_repetition_ratio":0.16066903,"word_repetition_ratio":0.054131053,"special_character_ratio":0.22812343,"punctuation_ratio":0.094292805,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9916745,"pos_list":[0,1,2,3,4,5,6],"im_url_duplicate_count":[null,1,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-22T05:04:38Z\",\"WARC-Record-ID\":\"<urn:uuid:13d6f063-f71d-4ce6-9bce-6ba4ac9e47ea>\",\"Content-Length\":\"83344\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:7a080cec-4c1f-431d-a3c7-68accb60e450>\",\"WARC-Concurrent-To\":\"<urn:uuid:c4aadc4b-096e-4743-8b0f-f3c01671ba0e>\",\"WARC-IP-Address\":\"23.229.182.163\",\"WARC-Target-URI\":\"https://absentdata.com/random-number-generator-excel/\",\"WARC-Payload-Digest\":\"sha1:QHNZUXLYN4B57IWU5GBCDILKVKWRSBYH\",\"WARC-Block-Digest\":\"sha1:LRSP2IK2WR7MGIABONLEXVKI6RD3EDKD\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233506329.15_warc_CC-MAIN-20230922034112-20230922064112-00525.warc.gz\"}"}