<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[2 * for, srand]]></title><description><![CDATA[<p>Grüße,</p>
<p>Wenn ich 2 ineinander geschachtelte for-Schleifen habe, und srand()<br />
verwenden will, über welcher Schleife muss ich das tun :</p>
<p>srand(...);<br />
for(i=0; i&lt;=10; i++)<br />
{<br />
for(i2=0; i2&lt;=5; i2++)<br />
{<br />
....<br />
}<br />
}</p>
<p>Gehört srand() über Schleife-1, oder Schleife-2?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/241757/2-for-srand</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 07:47:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/241757.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 May 2009 16:39:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 2 * for, srand on Mon, 25 May 2009 16:39:49 GMT]]></title><description><![CDATA[<p>Grüße,</p>
<p>Wenn ich 2 ineinander geschachtelte for-Schleifen habe, und srand()<br />
verwenden will, über welcher Schleife muss ich das tun :</p>
<p>srand(...);<br />
for(i=0; i&lt;=10; i++)<br />
{<br />
for(i2=0; i2&lt;=5; i2++)<br />
{<br />
....<br />
}<br />
}</p>
<p>Gehört srand() über Schleife-1, oder Schleife-2?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1715592</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1715592</guid><dc:creator><![CDATA[ytin]]></dc:creator><pubDate>Mon, 25 May 2009 16:39:49 GMT</pubDate></item><item><title><![CDATA[Reply to 2 * for, srand on Mon, 25 May 2009 16:48:17 GMT]]></title><description><![CDATA[<p>Am einfachsten ist es, srand einfach ein einziges mal beim Programmstart aufzurufen. Das reicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1715595</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1715595</guid><dc:creator><![CDATA[The-Kenny]]></dc:creator><pubDate>Mon, 25 May 2009 16:48:17 GMT</pubDate></item></channel></rss>