﻿
{"id":60,"date":"2012-03-08T01:35:12","date_gmt":"2012-03-08T01:35:12","guid":{"rendered":"http:\/\/www.gencayyildiz.com\/blog\/?p=60"},"modified":"2012-05-28T13:07:13","modified_gmt":"2012-05-28T13:07:13","slug":"cta-random-sinifi","status":"publish","type":"post","link":"https:\/\/www.gencayyildiz.com\/blog\/cta-random-sinifi\/","title":{"rendered":"C# Random S\u0131n\u0131f\u0131"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n<p>Bu yaz\u0131m\u0131zda C#&#8217;ta otomatik say\u0131 \u00fcretme i\u015flevine yarayan Random s\u0131n\u0131f\u0131ndan bahsedece\u011fim.Bu s\u0131n\u0131f sayesinde istedi\u011fimiz aral\u0131klarda say\u0131lar \u00fcretebilir,bu \u00fcretilen say\u0131lar\u0131 istedi\u011fimiz i\u015flemlerde kullanabiliriz.<br \/>\n<!--more--><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nRandom otomatiksayi=new Random();\r\n\/\/otomatiksayi ad\u0131nda referans olu\u015fturuyoruz.\r\notomatiksayi.Next();\r\n\/*Buradaki Next methodu ile 0-int de\u011fi\u015fkeninin son\r\nde\u011feri aras\u0131nda say\u0131 \u00fcretir.*\/\r\notomatiksayi.Next(20);\r\n\/\/0 ile 20(20 hari\u00e7) aras\u0131nda say\u0131 \u00fcretir.\r\notomatiksayi.Next(10,230);\r\n\/\/10 ile 230(10 dahil 230 hari\u00e7) aras\u0131nda say\u0131 \u00fcretir.\r\notomatiksayi.NextDouble();\r\n\/\/0.0 ile 1.0 aras\u0131nda double de\u011ferinde say\u0131 \u00fcretir.<\/pre>\n<p>\u0130yi \u00e7al\u0131\u015fmalar&#8230;<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Bu yaz\u0131m\u0131zda C#&#8217;ta otomatik say\u0131 \u00fcretme i\u015flevine yarayan Random s\u0131n\u0131f\u0131ndan bahsedece\u011fim.Bu s\u0131n\u0131f sayesinde istedi\u011fimiz aral\u0131klarda say\u0131lar \u00fcretebilir,bu \u00fcretilen say\u0131lar\u0131 istedi\u011fimiz i\u015flemlerde kullanabiliriz.<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[42],"class_list":["post-60","post","type-post","status-publish","format-standard","hentry","category-c-sharp-c","tag-random"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/60","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/comments?post=60"}],"version-history":[{"count":0,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/60\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media?parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/categories?post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/tags?post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}