{"id":262811,"date":"2024-03-13T20:07:39","date_gmt":"2024-03-13T19:07:39","guid":{"rendered":"https:\/\/www.sheetgo.com\/?p=262811"},"modified":"2026-10-06T15:32:19","modified_gmt":"2026-10-06T13:32:19","slug":"numeros-aleatorios-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/pt\/blog\/google-sheets-features\/google-random-number-generator\/","title":{"rendered":"Como usar RANDBETWEEN no Google Sheets (gerador de n\u00fameros aleat\u00f3rios)"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221; da_disable_devices=&#8221;off|off|off&#8221;][et_pb_row admin_label=&#8221;row&#8221; _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>There are many reasons why you may need a random number generator, such as creating sample datasets, testing code, or even playing dice. While the generation of true random numbers remains problematic, pseudo-random number generators are random enough for common uses, including those already mentioned above. Fortunately, Google Sheets provides three functions for random number generation: RAND, RANDARRAY, and RANDBETWEEN.<\/p>\n<p>In this guide, you will learn how to use the RAND, RANDARRAY, and RANDBETWEEN functions in Google Sheets. In addition to the step-by-step instructions on using each function, you will also learn how to combine them and use them in formulas.<\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;can-i-generate-a-random-number-with-goog&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>Can I generate a random number with Google Sheets?<\/h2>\n<p>There are three Google Sheets functions you can use to generate random numbers. RAND generates decimals between 0 (inclusive) and 1 (exclusive). RANDARRAY works the same way but generates an array instead of a single number. RANDBETWEEN, however, generates integers between the boundaries you specify.<\/p>\n<p>From a strictly mathematical perspective, these are not true random number generators but pseudo-random number generators. However, unless you\u2019re currently working on a mathematical proof, the numbers generated should be random enough.<\/p>\n<p>[\/et_pb_text][et_pb_text module_id=&#8221;how-to-use-the-rand-function-in-google-s&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>How to use the RAND function in Google Sheets?<\/h2>\n<p>Follow the steps below to use the <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/rand-formula-in-google-sheets\/\">RAND function<\/a> in Google Sheets.<\/p>\n<p><strong>1. <\/strong>Open Google Sheets.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/rand-google-sheets-blank-sheet.webp&#8221; alt=&#8221;RAND function in Google Sheets \u2014 blank spreadsheet with cell A1 selected&#8221; title_text=&#8221;Blank spreadsheet with cell A1 selected&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>2. <\/strong>In an empty cell, type the RAND function as shown below. The function doesn\u2019t take any arguments, so inserting anything between the parentheses will lead to an error.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/rand-google-sheets-type-rand-formula.webp&#8221; alt=&#8221;RAND function in Google Sheets \u2014 =RAND() typed into cell A1&#8243; title_text=&#8221;=RAND() typed into cell A1&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>3. <\/strong>Press \u2018Enter\u2019 to generate the number.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/rand-google-sheets-random-decimal.webp&#8221; alt=&#8221;RAND function in Google Sheets \u2014 cell A1 showing the random decimal 0.9904145949&#8243; title_text=&#8221;Cell A1 showing the random decimal 0.9904145949&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>4. <\/strong>Since RAND is a volatile function, it will generate a new number every time the sheet recalculates or refreshes.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/rand-google-sheets-volatile-new-value.webp&#8221; alt=&#8221;RAND function in Google Sheets \u2014 A1 recalculated to 0.13509477, with the note volatile in B1&#8243; title_text=&#8221;A1 recalculated to 0.13509477, with the note volatile in B1&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>5. <\/strong>If you need to create a static dataset for testing, you can do this by copying the cell or cells and using Edit &gt; Paste special &gt; Values only.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/rand-google-sheets-paste-values-only.webp&#8221; alt=&#8221;Random number generator in Google Sheets \u2014 Edit menu open at Paste special, Values only&#8221; title_text=&#8221;Edit menu open at Paste special, Values only&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>6. <\/strong>Like any other formula, you can grab the <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-features\/fill-down-google-sheets\/\">fill handle<\/a> and drag it to copy it to other cells.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/rand-google-sheets-fill-handle-copy.webp&#8221; alt=&#8221;RAND function in Google Sheets \u2014 =RAND() copied down A1:A12, each cell with a new decimal&#8221; title_text=&#8221;=RAND() copied down A1:A12, each cell with a new decimal&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text module_id=&#8221;how-to-use-the-randarray-function-in-goo&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>How to use the RANDARRAY function in Google Sheets?<\/h2>\n<p>If you need to generate an array of decimal values, you don\u2019t need to use multiple instances of RAND. Instead, use RANDARRAY to specify the number of rows and columns you want. Like other <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-features\/top-5-array-formulas-google-sheets\/\">dynamic array formulas<\/a>, it spills its results into the neighboring cells.<\/p>\n<p><strong>1. <\/strong>Open Google Sheets.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/randarray-google-sheets-select-cell.webp&#8221; alt=&#8221;RANDARRAY in Google Sheets \u2014 empty column D selected next to the RAND value in A1&#8243; title_text=&#8221;Empty column D selected next to the RAND value in A1&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>2. <\/strong>Type the RANDARRAY function in an empty cell.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/randarray-google-sheets-type-function.webp&#8221; alt=&#8221;RANDARRAY in Google Sheets \u2014 =RANDARRAY( typed in D1 with the rows and columns tooltip&#8221; title_text=&#8221;=RANDARRAY( typed in D1 with the rows and columns tooltip&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>3. <\/strong>For the first parameter, specify the number of rows you want in your array.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/randarray-google-sheets-rows-argument.webp&#8221; alt=&#8221;RANDARRAY in Google Sheets \u2014 10 entered as the rows argument in D1&#8243; title_text=&#8221;10 entered as the rows argument in D1&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>4. <\/strong>For the second parameter, specify the number of columns you want to generate.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/randarray-google-sheets-columns-argument.webp&#8221; alt=&#8221;RANDARRAY in Google Sheets \u2014 =RANDARRAY(10,4) with 4 as the columns argument&#8221; title_text=&#8221;=RANDARRAY(10,4) with 4 as the columns argument&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>5. <\/strong>Press \u2018Enter\u2019 to get the array.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/randarray-google-sheets-random-array.webp&#8221; alt=&#8221;RANDARRAY in Google Sheets \u2014 10 by 4 array of random decimals in D1:G10&#8243; title_text=&#8221;10 by 4 array of random decimals in D1:G10&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text module_id=&#8221;how-to-use-the-randbetween-function-in-g&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>How to use the RANDBETWEEN function in Google Sheets?<\/h2>\n<p>The syntax is =RANDBETWEEN(low, high), where low and high are the smallest and largest whole numbers you want. Both bounds are included, so =RANDBETWEEN(1, 6) works like rolling a die. Follow the steps below to use RANDBETWEEN to generate integers between the specified lower and upper bounds.<\/p>\n<p><strong>1. <\/strong>Open Google Sheets.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/randbetween-google-sheets-select-cell.webp&#8221; alt=&#8221;RANDBETWEEN Google Sheets \u2014 empty cell F2 selected next to a block of random decimals&#8221; title_text=&#8221;Empty cell F2 selected next to a block of random decimals&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>2. <\/strong>In an empty cell, type the RANDBETWEEN function.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/randbetween-google-sheets-type-function.webp&#8221; alt=&#8221;RANDBETWEEN Google Sheets \u2014 =RANDBETWEEN( typed in F2 with the low, high tooltip&#8221; title_text=&#8221;=RANDBETWEEN( typed in F2 with the low, high tooltip&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>3. <\/strong>Add the upper and lower boundaries. In this case, the function will generate numbers between 1 and 100.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/randbetween-google-sheets-low-high-bounds.webp&#8221; alt=&#8221;RANDBETWEEN Google Sheets \u2014 =RANDBETWEEN(1,100) with 1 and 100 as the bounds&#8221; title_text=&#8221;=RANDBETWEEN(1,100) with 1 and 100 as the bounds&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>4. <\/strong>Press \u2018Enter\u2019 to see the result.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/randbetween-google-sheets-random-integer.webp&#8221; alt=&#8221;RANDBETWEEN Google Sheets \u2014 cell F2 showing the random integer 61&#8243; title_text=&#8221;Cell F2 showing the random integer 61&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text module_id=&#8221;how-to-set-upper-lower-boundaries-with-t&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>How to set upper &amp; lower boundaries with the RAND function in Google Sheets?<\/h2>\n<p>In this section, you will learn how to use RAND to generate random numbers from a range larger than the default (0-1). Follow the steps below to set an upper and lower boundary for the RAND function.<\/p>\n<p><strong>1. <\/strong>Open Google Sheets.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/rand-google-sheets-lower-upper-bound-cells.webp&#8221; alt=&#8221;RAND with bounds in Google Sheets \u2014 lower bound 1 in B1, upper bound 100 in B2, A4 selected&#8221; title_text=&#8221;Lower bound 1 in B1, upper bound 100 in B2, A4 selected&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>2. <\/strong>In an empty cell, type the RAND function followed by the multiplication operator.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/rand-google-sheets-multiplication-operator.png&#8221; alt=&#8221;RAND with bounds in Google Sheets \u2014 =RAND()* typed in cell A4&#8243; title_text=&#8221;=RAND()* typed in cell A4&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>3. <\/strong>Add the upper and lower boundaries so the full formula reads =RAND()*(B2-B1)+B1, where B1 holds the lower bound and B2 holds the upper bound.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/rand-google-sheets-bounds-formula.png&#8221; alt=&#8221;RAND with bounds in Google Sheets \u2014 =RAND()*(B2-B1)+B1 referencing the bound cells&#8221; title_text=&#8221;=RAND()*(B2-B1)+B1 referencing the bound cells&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><strong>4. <\/strong>Press \u2018Enter\u2019 to see the result.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/rand-google-sheets-random-decimal-in-range.png&#8221; alt=&#8221;RAND with bounds in Google Sheets \u2014 A4 showing 90.97386777, between 1 and 100&#8243; title_text=&#8221;A4 showing 90.97386777, between 1 and 100&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text module_id=&#8221;how-to-combine-the-rand-randbetween-func&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>How to combine the RAND &amp; RANDBETWEEN functions in Google Sheets?<\/h2>\n<p>As you have seen, RAND only generates decimal numbers between 0 (inclusive) and 1 (exclusive). RANDBETWEEN, on the other hand, only generates integers between an upper and lower boundary. Therefore, you can easily combine them to get decimals between the boundaries you specify.<\/p>\n<p>For example, you can add RAND and RANDBETWEEN to get random decimals in a given range, just like in the previous example using RAND.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/rand-randbetween-google-sheets-add.png&#8221; alt=&#8221;RAND and RANDBETWEEN in Google Sheets \u2014 =RAND()+RANDBETWEEN(1,100) returning 51.15250832&#8243; title_text=&#8221;=RAND()+RANDBETWEEN(1,100) returning 51.15250832&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>You can also use it to get a negative range by subtracting them, as shown below.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/rand-randbetween-google-sheets-subtract.png&#8221; alt=&#8221;RAND and RANDBETWEEN in Google Sheets \u2014 =RAND()-RANDBETWEEN(1,100) returning -12.4962634&#8243; title_text=&#8221;=RAND()-RANDBETWEEN(1,100) returning -12.4962634&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>To generate multiple values, grab the fill handle and drag it down as far as you need.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2026\/10\/rand-randbetween-google-sheets-fill-handle.png&#8221; alt=&#8221;RAND and RANDBETWEEN in Google Sheets \u2014 both formulas dragged down D1:E20, positive and negative decimals&#8221; title_text=&#8221;Both formulas dragged down D1:E20, positive and negative decimals&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text module_id=&#8221;conclusion&#8221; _builder_version=&#8221;4.22.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>Conclusion<\/h2>\n<p>As you have seen, generating random numbers in Google Sheets is easy. There are three functions you can use separately or combine. The first function, RAND, takes no arguments and generates decimals between zero and one. The second function, RANDARRAY, works just like RAND but generates an array of decimals. You can specify the size of the array through the function\u2019s arguments: rows and columns. The third function, RANDBETWEEN, generates integers from a given range. You can specify the upper and lower limits of this range through the function\u2019s arguments.<\/p>\n<p>You now know how to use all three functions in Google Sheets. You also know that they are volatile functions, so the values generated will change with every recalculation or refresh on that sheet. If you need static values, make sure that after you generate them, you copy them and use the special paste option to keep values only. Additionally, you know how to combine these functions and adapt them to suit your needs.<\/p>\n<p>To round the decimals that RAND returns, use the <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/round-formula-in-google-sheets\/\">ROUND formula<\/a>. To shuffle a list into random order, add a =RAND() column next to it and sort by that column with the <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/sort-formula-google-sheets\/\">SORT function<\/a>.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Aprenda como as f\u00f3rmulas RANDBETWEEN do Google Sheets retornam n\u00fameros inteiros aleat\u00f3rios entre dois limites e quando usar RAND ou RANDARRAY para obter decimais.<\/p>","protected":false},"author":2,"featured_media":262834,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[37],"tags":[],"class_list":["post-262811","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-sheets-features"],"acf":[],"permalink_manager":null,"_links":{"self":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts\/262811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/comments?post=262811"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/posts\/262811\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media\/262834"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/media?parent=262811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/categories?post=262811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/pt\/wp-json\/wp\/v2\/tags?post=262811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}