<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Use PowerShell to Choose a Specific Number of Random Letters</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/07/use-powershell-to-choose-a-specific-number-of-random-letters.aspx</link><description>Microsoft Scripting Guy, Ed Wilson, shows how to use the Windows PowerShell Get-Random cmdlet to choose a specific number of random letters.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Use PowerShell to Choose a Specific Number of Random Letters</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/07/use-powershell-to-choose-a-specific-number-of-random-letters.aspx#3477760</link><pubDate>Mon, 30 Jan 2012 07:59:49 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3477760</guid><dc:creator>K_Schulte</dc:creator><description>&lt;p&gt;Hi Ed,&lt;/p&gt;
&lt;p&gt;a short but intuitive example of how to use a begin-process-end block in a foreach-statement!&lt;/p&gt;
&lt;p&gt;there are other alternatives of course to produce a concatenated output, like&lt;/p&gt;
&lt;p&gt;Get-Random -Count 2 -InputObject (65..90) | % {Write-Host -NoNewline $([char]$_)}&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;(Get-Random -Count 2 -InputObject (65..90) | % {[char]$_}) -join &amp;#39;&amp;#39;&lt;/p&gt;
&lt;p&gt;but these are not that interesting like using the process block inside the foreach statement!&lt;/p&gt;
&lt;p&gt;Klaus (Schulte)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3477760" width="1" height="1"&gt;</description></item></channel></rss>