<?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: Graphical removal of data points</title>
	<atom:link href="http://blogs.mathworks.com/pick/2007/02/07/graphical-removal-of-data-points/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/pick/2007/02/07/graphical-removal-of-data-points/</link>
	<description>&#60;a href=&#34;http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1093599&#38;objectType=author&#34;&#62;Brett&#60;/a&#62; &#38; &#60;a href=&#34;http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1094142&#38;objectType=author&#34;&#62;Jiro&#60;/a&#62; share favorite user-contributed submissions from the File Exchange.</description>
	<lastBuildDate>Fri, 10 Feb 2012 16:12: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: Doug Hull</title>
		<link>http://blogs.mathworks.com/pick/2007/02/07/graphical-removal-of-data-points/#comment-1403</link>
		<dc:creator>Doug Hull</dc:creator>
		<pubDate>Fri, 20 Apr 2007 14:12:11 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/?p=1928#comment-1403</guid>
		<description>Rommel,

You are correct; this is not a true &quot;lottery&quot; simulation.  It is essentially generating a vector of six uniformly distributed numbers ([0 1]) and then scaling them to [0 50] and finally rounding them up to be only integers ([1 50]).  The essentially means there is &#039;replacement&#039; between picks.  It would be easy enough to use the &quot;unique&quot; function in MATLAB to ensure you had unique values, or you could use &quot;randperm&quot; to get a random permutation of the numbers and just select the first few.

The number after &#039;state&#039; is setting up the state of the random number generator.  This is much like setting the seed.  I did that because I was specifically looking to generate &quot;4 8 15 16 23 42&quot; as my lottery picks.

Thanks for the interest,
Doug</description>
		<content:encoded><![CDATA[<p>Rommel,</p>
<p>You are correct; this is not a true &#8220;lottery&#8221; simulation.  It is essentially generating a vector of six uniformly distributed numbers ([0 1]) and then scaling them to [0 50] and finally rounding them up to be only integers ([1 50]).  The essentially means there is &#8216;replacement&#8217; between picks.  It would be easy enough to use the &#8220;unique&#8221; function in MATLAB to ensure you had unique values, or you could use &#8220;randperm&#8221; to get a random permutation of the numbers and just select the first few.</p>
<p>The number after &#8216;state&#8217; is setting up the state of the random number generator.  This is much like setting the seed.  I did that because I was specifically looking to generate &#8220;4 8 15 16 23 42&#8243; as my lottery picks.</p>
<p>Thanks for the interest,<br />
Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rommel</title>
		<link>http://blogs.mathworks.com/pick/2007/02/07/graphical-removal-of-data-points/#comment-1402</link>
		<dc:creator>Rommel</dc:creator>
		<pubDate>Fri, 20 Apr 2007 06:47:51 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/?p=1928#comment-1402</guid>
		<description>Hi Doug, 
I saw this post because I was looking for a similar function that would generate random numbers and at the same time whole numbers. I am a newbie in Matlab and I checked out your statement and ran through a number of iterations and on the sixth iteration there are two numbers that are the same. This will be unlikely for lottery picks because it can only pick the numbers that are still remaining not the ones that have already been picked. I would also like to ask what does the whole number after &#039;state&#039; do for the rand function.</description>
		<content:encoded><![CDATA[<p>Hi Doug,<br />
I saw this post because I was looking for a similar function that would generate random numbers and at the same time whole numbers. I am a newbie in Matlab and I checked out your statement and ran through a number of iterations and on the sixth iteration there are two numbers that are the same. This will be unlikely for lottery picks because it can only pick the numbers that are still remaining not the ones that have already been picked. I would also like to ask what does the whole number after &#8216;state&#8217; do for the rand function.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

