<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Choose random person</title>
	<atom:link href="http://www.name-generators.com/other-generators/choose-random-person.htm/feed" rel="self" type="application/rss+xml" />
	<link>http://www.name-generators.com/other-generators/choose-random-person.htm</link>
	<description>Blogging about name generators</description>
	<lastBuildDate>Tue, 24 Jan 2012 16:48:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Niels</title>
		<link>http://www.name-generators.com/other-generators/choose-random-person.htm#comment-74</link>
		<dc:creator>Niels</dc:creator>
		<pubDate>Wed, 12 Jan 2011 16:59:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.name-generators.com/?p=218#comment-74</guid>
		<description>Hi Chad.

If you wanna choose random students to form a single group or team, you can add this to the choose random person script:

&lt;pre&gt;var randomNumber2 = parseInt(Math.random() * class_list.length);
while(randomNumber2 == randomNumber){
    randomNumber2 = parseInt(Math.random() * class_list.length);
}&lt;/pre&gt;

We make a new random number. As long as the number is the same as our first number, we make a new rand0m number. 

If you need another member in the group we simply repeat the step:

&lt;pre&gt;var randomNumber3 = parseInt(Math.random() * class_list.length);
while(randomNumber3 == randomNumber &#124;&#124; randomNumber3 == randomNumber2){
    randomNumber3 = parseInt(Math.random() * class_list.length);
}
&lt;/pre&gt;
Only difference is that we this check that the new number is not the same as the first one &lt;b&gt;or&lt;/b&gt; (or is written like this: &#124;&#124; in JavaScript) the same as the second one.  For more group or team members just repeat this step. Remember to add the extra or condition to check the 4&#039;th random number also is difference form the 3&#039;rd one.

The we need to make the random group members:

&lt;pre&gt;var name2 = class_list[randomNumber2];
var name3 = class_list[randomNumber3];&lt;/pre&gt;


Finally we will alert the result:

&lt;pre&gt;alert(name + &quot;n&quot; + name2 + &quot;n&quot; + name3 );&lt;/pre&gt;

 &quot;n&quot; shows next name on a new line. Good luck. :)</description>
		<content:encoded><![CDATA[<p>Hi Chad.</p>
<p>If you wanna choose random students to form a single group or team, you can add this to the choose random person script:</p>
<pre>var randomNumber2 = parseInt(Math.random() * class_list.length);
while(randomNumber2 == randomNumber){
    randomNumber2 = parseInt(Math.random() * class_list.length);
}</pre>
<p>We make a new random number. As long as the number is the same as our first number, we make a new rand0m number. </p>
<p>If you need another member in the group we simply repeat the step:</p>
<pre>var randomNumber3 = parseInt(Math.random() * class_list.length);
while(randomNumber3 == randomNumber || randomNumber3 == randomNumber2){
    randomNumber3 = parseInt(Math.random() * class_list.length);
}
</pre>
<p>Only difference is that we this check that the new number is not the same as the first one <b>or</b> (or is written like this: || in JavaScript) the same as the second one.  For more group or team members just repeat this step. Remember to add the extra or condition to check the 4&#8242;th random number also is difference form the 3&#8242;rd one.</p>
<p>The we need to make the random group members:</p>
<pre>var name2 = class_list[randomNumber2];
var name3 = class_list[randomNumber3];</pre>
<p>Finally we will alert the result:</p>
<pre>alert(name + "n" + name2 + "n" + name3 );</pre>
<p> &#8220;n&#8221; shows next name on a new line. Good luck. <img src='http://www.name-generators.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad</title>
		<link>http://www.name-generators.com/other-generators/choose-random-person.htm#comment-73</link>
		<dc:creator>Chad</dc:creator>
		<pubDate>Wed, 12 Jan 2011 02:05:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.name-generators.com/?p=218#comment-73</guid>
		<description>I love the random name generator for students, is there a way to have it randomly pull two names at the same time or more for grouping?</description>
		<content:encoded><![CDATA[<p>I love the random name generator for students, is there a way to have it randomly pull two names at the same time or more for grouping?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Call of duty &#8211; Weapon and team name generators &#124; Name Generators Blog</title>
		<link>http://www.name-generators.com/other-generators/choose-random-person.htm#comment-72</link>
		<dc:creator>Call of duty &#8211; Weapon and team name generators &#124; Name Generators Blog</dc:creator>
		<pubDate>Sun, 26 Sep 2010 10:00:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.name-generators.com/?p=218#comment-72</guid>
		<description>[...] pointed him towards some of my random scripts and he used the choose random person script to form the base of the weapon generator. He modified the script to choose primary and secondary [...] </description>
		<content:encoded><![CDATA[<p>[...] pointed him towards some of my random scripts and he used the choose random person script to form the base of the weapon generator. He modified the script to choose primary and secondary [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

