{"id":378,"date":"2010-07-23T13:49:54","date_gmt":"2010-07-23T13:49:54","guid":{"rendered":"https:\/\/ibex.tech\/visualcpp\/?p=378"},"modified":"2022-02-17T06:24:05","modified_gmt":"2022-02-17T06:24:05","slug":"creating-random","status":"publish","type":"post","link":"https:\/\/ibex.tech\/visualcpp\/random\/creating-random","title":{"rendered":"Creating Random"},"content":{"rendered":"<h4>\nCreate random number<br \/>\n<\/h4>\n<pre>\r\n<code>\r\n\tSystem::Random ^rand = gcnew System::Random();\t\/\/Creates seed value from system clock if no seed supplied\r\n\tiTemp = rand-&gt;Next(1, (100+1));\t\t\/\/Min possible value, max possible value+1\r\n<\/code><\/pre>\n<h4>\nFill an array<br \/>\n<\/h4>\n<pre>\r\n<code>\r\n\tRandom ^rand = gcnew Random();\r\n\trand-&gt;NextBytes(DecodedHexFile);\t\/\/Fill entire array with random values\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Create random number System::Random ^rand = gcnew System::Random(); \/\/Creates seed value from system clock if no seed supplied iTemp = rand-&gt;Next(1, (100+1)); \/\/Min possible value, max possible value+1 Fill an array Random ^rand = gcnew Random(); rand-&gt;NextBytes(DecodedHexFile); \/\/Fill entire array with random values<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[],"class_list":["post-378","post","type-post","status-publish","format-standard","hentry","category-random"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/378","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/comments?post=378"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/378\/revisions"}],"predecessor-version":[{"id":1448,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/posts\/378\/revisions\/1448"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/media?parent=378"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/categories?post=378"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/visualcpp\/wp-json\/wp\/v2\/tags?post=378"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}