<?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: Code Golf</title>
	<atom:link href="http://blog.bogojoker.com/2007/03/code-golf/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bogojoker.com/2007/03/code-golf/</link>
	<description>&#039;My humble abode&#039;.sub(/ab/,&#039;c&#039;)</description>
	<lastBuildDate>Wed, 28 Sep 2011 09:09:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Joseph Pecoraro</title>
		<link>http://blog.bogojoker.com/2007/03/code-golf/comment-page-1/#comment-7</link>
		<dc:creator>Joseph Pecoraro</dc:creator>
		<pubDate>Wed, 28 Nov 2007 15:56:43 +0000</pubDate>
		<guid isPermaLink="false">http://bogojoker.com/weblog/2007/03/18/code-golf/#comment-7</guid>
		<description>Here were my solutions:

The down and dirty.  Choose a random character from an array of numbers and upper and lower letters.  Do this however many times it is necessary:
&lt;code&gt;$p.=(0..9,&#039;A&#039;..&#039;Z&#039;,&#039;a&#039;..&#039;z&#039;)[62*rand]for 1..pop;print$p,$/&lt;/code&gt;

This is what I consider my neat solution.  It generates a random ASCII character out of the first 122 ASCII characters (z is 122).  If that character matches the regular expression (looking for a number or a letter) then we add it to our string.  If it was a bad guess we reloop.  This is not deterministic but its a really cool solution:
&lt;code&gt;$_=chr 123*rand,/[\da-z]/i?$a.=$_:redo for 1..pop;print$a,$/&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Here were my solutions:</p>
<p>The down and dirty.  Choose a random character from an array of numbers and upper and lower letters.  Do this however many times it is necessary:<br />
<code>$p.=(0..9,'A'..'Z','a'..'z')[62*rand]for 1..pop;print$p,$/</code></p>
<p>This is what I consider my neat solution.  It generates a random ASCII character out of the first 122 ASCII characters (z is 122).  If that character matches the regular expression (looking for a number or a letter) then we add it to our string.  If it was a bad guess we reloop.  This is not deterministic but its a really cool solution:<br />
<code>$_=chr 123*rand,/[\da-z]/i?$a.=$_:redo for 1..pop;print$a,$/</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>

