<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Clomosy | Forum : Jsondan rastgele veri çekme</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : Jsondan rastgele veri çekme]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 10:53:18 +0000</pubDate>
  <lastBuildDate>Tue, 07 Oct 2025 10:32:59 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=1204</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Clomosy | Forum]]></title>
   <url>https://forum.clomosy.com.tr/forum_images/logo.png</url>
   <link>https://forum.clomosy.com.tr/</link>
  </image>
  <item>
   <title><![CDATA[Jsondan rastgele veri çekme : te&#351;ekk&#252;rler hocam ]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1204&amp;PID=2576#2576</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=345">kaanl0</a><br /><strong>Konu:</strong> 1204<br /><strong>Gönderim Zamanı:</strong> 07&nbsp;Ekim&nbsp;2025 Saat 10:32<br /><br />teşekkürler hocam]]>
   </description>
   <pubDate>Tue, 07 Oct 2025 10:32:59 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1204&amp;PID=2576#2576</guid>
  </item> 
  <item>
   <title><![CDATA[Jsondan rastgele veri çekme : Toplam pair say&#305;s&#305;n&#305; bildi&#287;imiz...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1204&amp;PID=2575#2575</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=257">Emr.Erkmn</a><br /><strong>Konu:</strong> 1204<br /><strong>Gönderim Zamanı:</strong> 07&nbsp;Ekim&nbsp;2025 Saat 10:05<br /><br />Toplam pair sayısını bildiğimiz için&nbsp;<br><div>var</div><div>&nbsp; mainform: TclForm;</div><div>&nbsp; words, firstPlayer, secondPlayer: String;</div><div>&nbsp; randomIndex: Integer;</div><div><br></div><div>void jsonV {</div><div>&nbsp; {</div><div>&nbsp; &nbsp; words = Clomosy.getunittext('categorywords');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; // Toplam pair sayısı 50&nbsp;</div><div>&nbsp; &nbsp; randomIndex = Random(50);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; // Rastgele çifti al</div><div>&nbsp; &nbsp; firstPlayer = Clomosy.CLParseJSON(words, 'categories.0.pairs.' + IntToStr(randomIndex) + '.0');</div><div>&nbsp; &nbsp; secondPlayer = Clomosy.CLParseJSON(words, 'categories.0.pairs.' + IntToStr(randomIndex) + '.1');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ShowMessage('Rastgele Çift: ' + firstPlayer + ' &amp; ' + secondPlayer);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>{</div><div>&nbsp; mainform = TclForm.Create(Self);</div><div>&nbsp; jsonV;</div><div>&nbsp; mainform.Run;</div><div>}&nbsp;<br><br>kullanmayı dener misin?&nbsp;<br><br>ya da döngü yardımıyla pair sayısını bulalım;<br><div>var</div><div>&nbsp; mainform: TclForm;</div><div>&nbsp; words, firstPlayer, secondPlayer: String;</div><div>&nbsp; pairCount, randomIndex, i: Integer;</div><div>&nbsp; found: Boolean;</div><div><br></div><div>void jsonV {</div><div>&nbsp; {</div><div>&nbsp; &nbsp; words = Clomosy.getunittext('categorywords');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; // Pair sayısı için döngü&nbsp;</div><div>&nbsp; &nbsp; pairCount = 0;</div><div>&nbsp; &nbsp; found = True;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; while (found) {</div><div>&nbsp; &nbsp; &nbsp; firstPlayer = Clomosy.CLParseJSON(words, 'categories.0.pairs.' + IntToStr(pairCount) + '.0');</div><div>&nbsp; &nbsp; &nbsp; if (firstPlayer &lt;&gt; '') {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; pairCount = pairCount + 1;</div><div>&nbsp; &nbsp; &nbsp; } else {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; found = False;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; // Rastgele indeks&nbsp;</div><div>&nbsp; &nbsp; randomIndex = Random(pairCount);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; // Rastgele çifti al</div><div>&nbsp; &nbsp; firstPlayer = Clomosy.CLParseJSON(words, 'categories.0.pairs.' + IntToStr(randomIndex) + '.0');</div><div>&nbsp; &nbsp; secondPlayer = Clomosy.CLParseJSON(words, 'categories.0.pairs.' + IntToStr(randomIndex) + '.1');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ShowMessage('Rastgele Çift: ' + firstPlayer + ' &amp; ' + secondPlayer);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>{</div><div>&nbsp; mainform = TclForm.Create(Self);</div><div>&nbsp; jsonV;</div><div>&nbsp; mainform.Run;</div><div>}</div></div>]]>
   </description>
   <pubDate>Tue, 07 Oct 2025 10:05:51 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1204&amp;PID=2575#2575</guid>
  </item> 
  <item>
   <title><![CDATA[Jsondan rastgele veri çekme : Hocam Length komutu hep 0 d&#246;nd&#252;r&#252;yor...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1204&amp;PID=2574#2574</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=345">kaanl0</a><br /><strong>Konu:</strong> 1204<br /><strong>Gönderim Zamanı:</strong> 07&nbsp;Ekim&nbsp;2025 Saat 09:38<br /><br />Hocam Length komutu hep 0 döndürüyor bu yüzden hep aynı isimler çıkıyor]]>
   </description>
   <pubDate>Tue, 07 Oct 2025 09:38:16 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1204&amp;PID=2574#2574</guid>
  </item> 
  <item>
   <title><![CDATA[Jsondan rastgele veri çekme : Merhaba Kaan,SON veri yap&#305;s&#305;ndan...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1204&amp;PID=2573#2573</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=257">Emr.Erkmn</a><br /><strong>Konu:</strong> 1204<br /><strong>Gönderim Zamanı:</strong> 07&nbsp;Ekim&nbsp;2025 Saat 09:07<br /><br />Merhaba Kaan,&nbsp;<br>SON veri yapısından <span -start="50" -end="74">rastgele veri çekmek</span> istiyorsan, öncelikle kaç adet pair&nbsp;olduğunu öğrenmeli, sonra bu sayıya göre random&nbsp;fonksiyonunu kullanarak rastgele bir indeks üretmelisin.<div><div>var</div><div>&nbsp; myform: TclForm;</div><div>&nbsp; words, firstPlayer, secondPlayer: String;</div><div>&nbsp; pairCount, randomIndex: Integer;</div><div><br></div><div>void jsonV</div><div>{</div><div>&nbsp; words = Clomosy.getunittext('categorywords');</div><div>&nbsp;&nbsp;</div><div>&nbsp; pairCount = Clomosy.CLParseJSON(words, 'categories.0.pairs.length');</div><div>&nbsp; randomIndex = Random(pairCount); // Örneğin 0–49 arası</div><div><br></div><div>&nbsp; firstPlayer = Clomosy.CLParseJSON(words, 'categories.0.pairs.' + IntToStr(randomIndex) + '.0');</div><div>&nbsp; secondPlayer = Clomosy.CLParseJSON(words, 'categories.0.pairs.' + IntToStr(randomIndex) + '.1');</div><div><br></div><div>&nbsp; ShowMessage('Çift: ' + firstPlayer + ' &amp; ' + secondPlayer);</div><div>}</div><div><br></div><div>{</div><div>&nbsp; myform = TclForm.Create(Self);</div><div>&nbsp; jsonV;</div><div>&nbsp; myform.Run;</div><div>}</div></div><div><br></div>]]>
   </description>
   <pubDate>Tue, 07 Oct 2025 09:07:07 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1204&amp;PID=2573#2573</guid>
  </item> 
  <item>
   <title><![CDATA[Jsondan rastgele veri çekme : varmainform : tclform;void jsonVvarwords,...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1204&amp;PID=2571#2571</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=345">kaanl0</a><br /><strong>Konu:</strong> 1204<br /><strong>Gönderim Zamanı:</strong> 06&nbsp;Ekim&nbsp;2025 Saat 16:45<br /><br /><div>var</div><div>mainform : tclform;</div><div><br></div><div><br></div><div>void jsonV</div><div>var</div><div>words, word:String;</div><div><br></div><div>i: Integer;</div><div><br></div><div>&nbsp;{</div><div>&nbsp; words=clomosy.getunittext('categorywords');</div><div>&nbsp; word= Clomosy.CLParseJSON(words, 'categories.'+IntToStr(i)+'.pairs.0.0');</div><div>&nbsp; ShowMessage(word);</div><div>}</div><div><br></div><div><br></div><div><br></div><div>{</div><div>&nbsp; mainform = TclForm.Create(Self);</div><div>&nbsp; mainform.run;</div><div>&nbsp; jsonV;</div><div>&nbsp;&nbsp;</div><div>}&nbsp;&nbsp;</div><div>------------------------------------------------------</div><div>&nbsp;Clomosynin textindeki Json yapısından veri çekiyorum ama bunu rastgele yapmam gerek bunu nasıl yapabilirim&nbsp;</div><div><br></div><div>-----------Kullandığım JSON------------</div><div><br></div><div><br></div><div><div>{</div><div>&nbsp; "categories": &#091;</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; "id": 1,</div><div>&nbsp; &nbsp; &nbsp; "name": "Futbolcular",</div><div>&nbsp; &nbsp; &nbsp; "pairs": &#091;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Cristiano Ronaldo", "Lionel Messi"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Frank Lampard", "Steven Gerrard"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Wayne Rooney", "Robin van Persie"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Sergio Ramos", "Gerard Piqué"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Mesut Özil", "İlkay Gündoğan"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Arda Turan", "Emre Belözoğlu"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Roberto Carlos", "Marcelo"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Erling Haaland", "Kylian Mbappé"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Luka Modri&#263;", "Toni Kroos"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Arjen Robben", "Franck Ribéry"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Mohamed Salah", "Sadio Mané"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Neymar", "Antoine Griezmann"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Kevin De Bruyne", "Bernardo Silva"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Jude Bellingham", "Pedri"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Phil Foden", "Jamal Musiala"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Vinícius Júnior", "Rodrygo"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Bukayo Saka", "Gabriel Martinelli"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Lautaro Martínez", "Julián Álvarez"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Declan Rice", "Enzo Fernández"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Achraf Hakimi", "João Cancelo"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Virgil van Dijk", "Kalidou Koulibaly"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Harry Kane", "Robert Lewandowski"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Karim Benzema", "Gonzalo Higuaín"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Paulo Dybala", "Lautaro Martínez"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Frenkie de Jong", "Gavi"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Raphinha", "Ousmane Dembélé"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Romelu Lukaku", "Álvaro Morata"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Ángel Di María", "James Rodríguez"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Eden Hazard", "Marco Reus"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Zlatan Ibrahimovi&#263;", "Olivier Giroud"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Fernando Torres", "David Villa"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Didier Drogba", "Samuel Eto’o"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Andrea Pirlo", "Xavi Hernández"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Andrés Iniesta", "Cesc Fàbregas"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Thiago Silva", "Marquinhos"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Gianluigi Buffon", "Iker Casillas"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Petr &#268;ech", "Edwin van der Sar"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"John Terry", "Rio Ferdinand"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Paolo Maldini", "Alessandro Nesta"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Cafu", "Dani Alves"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Claudio Marchisio", "Daniele De Rossi"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Sergio Busquets", "Casemiro"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"N’Golo Kanté", "Jorginho"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Thomas Müller", "Mario Götze"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Mesut Özil", "David Silva"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Xabi Alonso", "Michael Carrick"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Clarence Seedorf", "Edgar Davids"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Ronaldinho", "Kaká"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Ronaldo Nazário", "Rivaldo"&#093;,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &#091;"Pelé", "Diego Maradona"&#093;</div><div>&nbsp; &nbsp; &nbsp; &#093;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &#093;</div><div>}</div></div><div><br></div><div>&nbsp;&nbsp;</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 06 Oct 2025 16:45:47 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1204&amp;PID=2571#2571</guid>
  </item> 
 </channel>
</rss>