{"id":786,"date":"2019-04-19T12:57:10","date_gmt":"2019-04-19T09:57:10","guid":{"rendered":"https:\/\/www.test4u.eu\/excelpedia\/?p=786"},"modified":"2019-04-19T13:03:45","modified_gmt":"2019-04-19T10:03:45","slug":"the-rand-function","status":"publish","type":"post","link":"https:\/\/www.test4u.eu\/excelpedia\/the-rand-function\/","title":{"rendered":"The RAND Function"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">It returns an evenly distributed random real number greater than or equal to 0 and less than 1. A new random real number is returned every time the worksheet is calculated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The syntax of the function is the following: <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-style-large is-layout-flow wp-block-quote-is-layout-flow\"><p> <strong>RAND<\/strong><em>(<\/em>) <\/p><cite><br><\/cite><\/blockquote>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">To generate a random real number between a and b, use: <strong>RAND()*(b-a)+a<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To generate a random integer number between two numbers use the <strong><a href=\"https:\/\/www.test4u.eu\/excelpedia\/the-randbetween-function\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"RANDBETWEEN  (opens in a new tab)\">RANDBETWEEN <\/a><\/strong>function.<\/p>\n\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Click on the button to practice using this function, with the help of our <strong>Online Assessment Tool<\/strong>:<\/p>\n\n\n<p class=\"button-practice-container\" ><a class=\"button button-primary button-practice\" style=\"height:auto\"  href=\"https:\/\/www.test4u.eu\/excelpedia\/wp-content\/plugins\/unlimited-integration\/run.php?id=NkxGT04rckxMN0hmZE8zRkswM0dxUXRrdFp3dTRYTDV2MUZIYlpSOHB1dz0=&b=ZWJDLzBhZ096VFVyQUdDWWJPcG4zVzNLajExR1JjalRwMHpuSDYyam9rZ2lDeDNnYVRLUzZuZ1hPckJJd1lLQUdPQjV2Q1I1R0Rubmtvc29rckcxbS90RTBtVTZCUWtQaVl6REhSRUFTbjA9\">Practice<\/a><\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Here is an example of how to use the RAND function:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the cells B2:B10 insert random numbers between 0 and 1 using the RAND function.<br>\nIn the cells C2:C10 insert random numbers between 10 and 20 using the RAND function.<\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Use the RAND function to insert random numbers (Excel 2016)\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/Uj3_kMglMBE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>It returns an evenly distributed random real number greater than or equal to 0 and less than 1. A new random real number is returned every time the worksheet is calculated.<\/p>\n","protected":false},"author":2,"featured_media":788,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[15,85],"class_list":["post-786","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-functions","tag-math","tag-rand"],"_links":{"self":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/posts\/786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/comments?post=786"}],"version-history":[{"count":0,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/posts\/786\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/media\/788"}],"wp:attachment":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/media?parent=786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/categories?post=786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/tags?post=786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}