{"id":10313,"date":"2016-02-26T10:59:01","date_gmt":"2016-02-26T02:59:01","guid":{"rendered":"http:\/\/localhost\/help\/p2-server\/calculations\/random\/"},"modified":"2024-08-15T10:31:30","modified_gmt":"2024-08-15T02:31:30","slug":"random","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/random\/","title":{"rendered":"Random()"},"content":{"rendered":"\n<h2><span id=\"Format\">Format<\/span><\/h2>\n<p class=\"intro-text\"><strong>Random([BoundaryValue1 ,BoundaryValue2])<br \/>\n Rand([BoundaryValue1 ,BoundaryValue2])<br \/>\n <\/strong><\/p>\n<p class=\"left-bar-p2blue\">Note: You can use Random() or Rand() interchangeably.<\/p>\n<h2><span id=\"Returns\"><span id=\"Returns\">Returns<\/span><\/span><\/h2>\n<p class=\"intro-text\">Returns a random number in decimal format.<\/p>\n<h2><span id=\"Parameters\"><span id=\"Parameters\">Inputs<\/span><\/span><\/h2>\n<p class=\"intro-text\"><strong>BoundaryValue1<\/strong>: The lowest number that can be generated.<br \/>\n Behaviour:\u00a0Optional<br \/>\n Dimension: SingleValue<br \/>\n Valid data types: Decimal, Integer<\/p>\n<p class=\"intro-text\"><strong>BoundaryValue2<\/strong>: The highest number that can be generated.<br \/>\n Behaviour: Optional<br \/>\n Dimension: SingleValue<br \/>\n Valid data types:\u00a0Decimal, Integer<\/p>\n<p class=\"left-bar\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/calculation-syntax\/#Data_Type\">How to format data types<\/a><\/p>\n<h2>Examples<\/h2>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Random()<\/span><br \/>\n Result: A random number between 0 and 100.<\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Random(50)<\/span><br \/>\n Result: A random number between 0 and 50.<\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Random(-50, 700)<\/span><br \/>\n Result: A random number between -50 and 700.<\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Random(50, -700)<\/span><br \/>\n Result: A random number between -700 and 50.<\/p>\n<p class=\"intro-text\">\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use Rand() or Random() to get a random number.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/random\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":10319,"parent":3650,"menu_order":167,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[9],"tags":[100,402],"class_list":["post-10313","page","type-page","status-publish","has-post-thumbnail","hentry","category-tech-ref","tag-calculations","tag-random","Product-srv"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/10313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=10313"}],"version-history":[{"count":1,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/10313\/revisions"}],"predecessor-version":[{"id":46233,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/10313\/revisions\/46233"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/3650"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/10319"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=10313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=10313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=10313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}