{"id":249,"date":"2017-01-02T15:29:37","date_gmt":"2017-01-02T15:29:37","guid":{"rendered":"https:\/\/ibex.tech\/csharp\/?p=249"},"modified":"2022-02-17T06:24:14","modified_gmt":"2022-02-17T06:24:14","slug":"creating-random","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/uwp-programming-in-c\/random\/creating-random","title":{"rendered":"Creating Random"},"content":{"rendered":"<h4>\n\tCreate random number<br \/>\n<\/h4>\n<pre>\r\n<code>\r\n\tSystem.Random rand = new System.Random();\t\t\/\/Creates seed value from system clock if no seed supplied\r\n\tint iTemp = rand.Next(1, (100+1));\t\t\t\t\/\/Min possible value, max possible value+1\r\n<\/code><\/pre>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create random number System.Random rand = new System.Random(); \/\/Creates seed value from system clock if no seed supplied int iTemp = rand.Next(1, (100+1)); \/\/Min possible value, max possible value+1 &nbsp;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[],"class_list":["post-249","post","type-post","status-publish","format-standard","hentry","category-random"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=249"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/249\/revisions"}],"predecessor-version":[{"id":264,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/249\/revisions\/264"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}