{"id":1554,"date":"2011-07-08T12:37:43","date_gmt":"2011-07-08T16:37:43","guid":{"rendered":"http:\/\/jdhitsolutions.com\/blog\/?p=1554"},"modified":"2011-07-08T12:37:43","modified_gmt":"2011-07-08T16:37:43","slug":"friday-fun-powershell-powerball-numbers","status":"publish","type":"post","link":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1554\/friday-fun-powershell-powerball-numbers\/","title":{"rendered":"Friday Fun PowerShell PowerBall Numbers"},"content":{"rendered":"<p>Like many of you, I dream about hitting the lottery and retiring to live the good life. Unfortunately I rarely play so I guess my odds are winning are pretty slim. But for the latest installment of Friday Fun, I thought I would have PowerShell help me pick some numbers for PowerBall. It is not as easy as you might think and you might pick up a thing or two about objects, arrays and loops.<!--more--><\/p>\n<p>To play Powerball you need to pick five numbers between 1 and 59 and 1 PowerBall number between 1 and 42. The PowerBall number is easy to get from PowerShell with Get-Random.<\/p>\n<p>[cc lang=\"PowerShell\"]<br \/>\nPS C:\\> Get-Random -Minimum 1 -Maximum 42<br \/>\n41<br \/>\n[\/cc]<\/p>\n<p>Getting the 5 primary numbers is a little trickier. The Get-Random cmdlet has a -Count property, but it doesn't work when you need to specify a minimum and maximum range. Here's one way we can get 5 numbers.<\/p>\n<p>[cc lang=\"PowerShell\"]<br \/>\n1..5 | foreach {Get-Random -Minimum 1 -Maximum 59}<br \/>\n[\/cc]<\/p>\n<p>Or you could use a For loop:<\/p>\n<p>[cc lang=\"PowerShell\"]<br \/>\nfor ($i=1;$i -le 5;$i++) {<br \/>\n Get-Random -Minimum 1 -Maximum 59<br \/>\n}<br \/>\n[\/cc]<\/p>\n<p>But there's no guarantee you won't get a duplicate number. We could try increasing the total numbers and then selecting 5 unique.<\/p>\n<p>[cc lang=\"PowerShell\"]<br \/>\n1..10 | foreach {Get-Random -Minimum 1 -Maximum 59} | Select -Unique -first 5 | Sort<br \/>\n[\/cc]<\/p>\n<p>But even this isn't foolproof. I suppose I could increase the range but theoretically I believe I could still end up with duplicates or actually not enough numbers. Perhaps a Do loop would help.<\/p>\n<p>[cc lang=\"PowerShell\"]<br \/>\n$numArray=@()<br \/>\ndo {<br \/>\n $i=Get-Random -Minimum 1 -Maximum 59<br \/>\n if ($numArray -notcontains $i) {<br \/>\n   $numArray+=$i<br \/>\n }<br \/>\n} Until ($numArray.Count -eq 5)<br \/>\n[\/cc]<\/p>\n<p>I'll start out with an empty array. In the Do loop, Get-Random returns a number, $i. I then use the -NotContains operator to see if the number already exists in the array. If it doesn't, ie the evaluation is True, then the number is added to the array using the += operator. This process continues until the total number of elements in $numArray is 5. This should guarantee 5 unique numbers between 1 and 59.<\/p>\n<p>Now that we can get the numbers, let's bundle the functionality. We might use New-Object and use the $numArray variable we just populated.<\/p>\n<p>[cc lang=\"PowerShell\"]<br \/>\nNew-Object PSObject -Property @{<br \/>\nNumbers=$numArray | Sort<br \/>\nPowerBall=Get-Random -Minimum 1 -Maximum 42<br \/>\n}<br \/>\n[\/cc]<\/p>\n<p>I could create a function to wrap everything up but let's mix it up and use a scriptblock which will give us the same pipelined result.<\/p>\n<p>[cc lang=\"PowerShell\"]<br \/>\nPS C:\\> $pb={$numArray=@()<br \/>\n>>     do {<br \/>\n>>      $i=Get-Random -Minimum 1 -Maximum 59<br \/>\n>>      if ($numArray -notcontains $i) {<br \/>\n>>        $numArray+=$i<br \/>\n>>      }<br \/>\n>>     } Until ($numArray.Count -eq 5)<br \/>\n>><br \/>\n>>     New-Object PSObject -Property @{<br \/>\n>>     Numbers=$numArray | Sort<br \/>\n>>     PowerBall=Get-Random -Minimum 1 -Maximum 42<br \/>\n>>     }<br \/>\n>> }<br \/>\n>><br \/>\nPS C:\\> &$pb<\/p>\n<p>                                                  PowerBall Numbers<br \/>\n                                                  --------- -------<br \/>\n                                                         10 {7, 26, 28, 40...}<br \/>\n[\/cc]<\/p>\n<p>Formatting is a bit tricky because the Numbers property is an array. Here's on solution that instructs PowerShell to treat the Numbers property as a string:<\/p>\n<p>[cc lang=\"PowerShell\"]<br \/>\nPS C:\\> &$pb | Select Powerball,@{Name=\"Numbers\";Expression={$_.Numbers -as [string]}} | fl<\/p>\n<p>PowerBall : 36<br \/>\nNumbers   : 16 42 46 49 55<br \/>\n[\/cc]<\/p>\n<p>Not too bad. In fact, I might as well wrap this up as well in a script block.<\/p>\n<p>[cc lang=\"PowerShell\"]<br \/>\nPS C:\\> $play={&$pb | Select Powerball,@{Name=\"Numbers\";Expression={$_.Numbers -as [string]}} | fl}<br \/>\nPS C:\\> &$play<\/p>\n<p>PowerBall : 17<br \/>\nNumbers   : 1 16 33 34 55<br \/>\n[\/cc]<\/p>\n<p>I can even pick numbers for 5 games at once:<\/p>\n<p>[cc lang=\"PowerShell\"]<br \/>\nPS C:\\> 1..5 | foreach {&$play}<\/p>\n<p>PowerBall : 33<br \/>\nNumbers   : 1 5 14 35 37<\/p>\n<p>PowerBall : 25<br \/>\nNumbers   : 16 25 36 44 45<\/p>\n<p>PowerBall : 15<br \/>\nNumbers   : 16 27 28 34 45<\/p>\n<p>PowerBall : 23<br \/>\nNumbers   : 19 41 42 51 57<\/p>\n<p>PowerBall : 14<br \/>\nNumbers   : 4 15 24 47 51<br \/>\n[\/cc]<\/p>\n<p>Formatting is perfect, but I hope you get the idea. I guess I should pipe my numbers to Out-Printer and head to the store and if you win with my PowerShell PowerBall picks, I hope you'll remember me. \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Like many of you, I dream about hitting the lottery and retiring to live the good life. Unfortunately I rarely play so I guess my odds are winning are pretty slim. But for the latest installment of Friday Fun, I thought I would have PowerShell help me pick some numbers for PowerBall. It is not&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[271,4],"tags":[305,230,245,306,534],"class_list":["post-1554","post","type-post","status-publish","format-standard","hentry","category-friday-fun","category-powershell","tag-do","tag-fridayfun","tag-get-random","tag-new-ojbect","tag-powershell"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Friday Fun PowerShell PowerBall Numbers &#8226; The Lonely Administrator<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jdhitsolutions.com\/blog\/powershell\/1554\/friday-fun-powershell-powerball-numbers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Friday Fun PowerShell PowerBall Numbers &#8226; The Lonely Administrator\" \/>\n<meta property=\"og:description\" content=\"Like many of you, I dream about hitting the lottery and retiring to live the good life. Unfortunately I rarely play so I guess my odds are winning are pretty slim. But for the latest installment of Friday Fun, I thought I would have PowerShell help me pick some numbers for PowerBall. It is not...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jdhitsolutions.com\/blog\/powershell\/1554\/friday-fun-powershell-powerball-numbers\/\" \/>\n<meta property=\"og:site_name\" content=\"The Lonely Administrator\" \/>\n<meta property=\"article:published_time\" content=\"2011-07-08T16:37:43+00:00\" \/>\n<meta name=\"author\" content=\"Jeffery Hicks\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@JeffHicks\" \/>\n<meta name=\"twitter:site\" content=\"@JeffHicks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeffery Hicks\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/1554\\\/friday-fun-powershell-powerball-numbers\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/1554\\\/friday-fun-powershell-powerball-numbers\\\/\"},\"author\":{\"name\":\"Jeffery Hicks\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"headline\":\"Friday Fun PowerShell PowerBall Numbers\",\"datePublished\":\"2011-07-08T16:37:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/1554\\\/friday-fun-powershell-powerball-numbers\\\/\"},\"wordCount\":600,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"keywords\":[\"Do\",\"FridayFun\",\"Get-Random\",\"New-Ojbect\",\"PowerShell\"],\"articleSection\":[\"Friday Fun\",\"PowerShell\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/1554\\\/friday-fun-powershell-powerball-numbers\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/1554\\\/friday-fun-powershell-powerball-numbers\\\/\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/1554\\\/friday-fun-powershell-powerball-numbers\\\/\",\"name\":\"Friday Fun PowerShell PowerBall Numbers &#8226; The Lonely Administrator\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\"},\"datePublished\":\"2011-07-08T16:37:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/1554\\\/friday-fun-powershell-powerball-numbers\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/1554\\\/friday-fun-powershell-powerball-numbers\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/1554\\\/friday-fun-powershell-powerball-numbers\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Friday Fun\",\"item\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/category\\\/friday-fun\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Friday Fun PowerShell PowerBall Numbers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/\",\"name\":\"The Lonely Administrator\",\"description\":\"Practical Advice for the Automating IT Pro\",\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\",\"name\":\"Jeffery Hicks\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"caption\":\"Jeffery Hicks\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Friday Fun PowerShell PowerBall Numbers &#8226; The Lonely Administrator","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1554\/friday-fun-powershell-powerball-numbers\/","og_locale":"en_US","og_type":"article","og_title":"Friday Fun PowerShell PowerBall Numbers &#8226; The Lonely Administrator","og_description":"Like many of you, I dream about hitting the lottery and retiring to live the good life. Unfortunately I rarely play so I guess my odds are winning are pretty slim. But for the latest installment of Friday Fun, I thought I would have PowerShell help me pick some numbers for PowerBall. It is not...","og_url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1554\/friday-fun-powershell-powerball-numbers\/","og_site_name":"The Lonely Administrator","article_published_time":"2011-07-08T16:37:43+00:00","author":"Jeffery Hicks","twitter_card":"summary_large_image","twitter_creator":"@JeffHicks","twitter_site":"@JeffHicks","twitter_misc":{"Written by":"Jeffery Hicks","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1554\/friday-fun-powershell-powerball-numbers\/#article","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1554\/friday-fun-powershell-powerball-numbers\/"},"author":{"name":"Jeffery Hicks","@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"headline":"Friday Fun PowerShell PowerBall Numbers","datePublished":"2011-07-08T16:37:43+00:00","mainEntityOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1554\/friday-fun-powershell-powerball-numbers\/"},"wordCount":600,"commentCount":0,"publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"keywords":["Do","FridayFun","Get-Random","New-Ojbect","PowerShell"],"articleSection":["Friday Fun","PowerShell"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/1554\/friday-fun-powershell-powerball-numbers\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1554\/friday-fun-powershell-powerball-numbers\/","url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1554\/friday-fun-powershell-powerball-numbers\/","name":"Friday Fun PowerShell PowerBall Numbers &#8226; The Lonely Administrator","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#website"},"datePublished":"2011-07-08T16:37:43+00:00","breadcrumb":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1554\/friday-fun-powershell-powerball-numbers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/1554\/friday-fun-powershell-powerball-numbers\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1554\/friday-fun-powershell-powerball-numbers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Friday Fun","item":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},{"@type":"ListItem","position":2,"name":"Friday Fun PowerShell PowerBall Numbers"}]},{"@type":"WebSite","@id":"https:\/\/jdhitsolutions.com\/blog\/#website","url":"https:\/\/jdhitsolutions.com\/blog\/","name":"The Lonely Administrator","description":"Practical Advice for the Automating IT Pro","publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jdhitsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9","name":"Jeffery Hicks","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","url":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","caption":"Jeffery Hicks"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg"}}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":1389,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1389\/friday-fun-randomness-abounds\/","url_meta":{"origin":1554,"position":0},"title":"Friday Fun Randomness Abounds","author":"Jeffery Hicks","date":"April 29, 2011","format":false,"excerpt":"I find it a little ironic that although I like efficiency, structure and order I'm fascinated with randomness. In today's Friday Fun I want to explore a few ways you might incorporate randomness into your PowerShell scripting. Perhaps you need a random number between 100 and 500. Or a string\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":867,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/867\/friday-fun-music-of-the-shell\/","url_meta":{"origin":1554,"position":1},"title":"Friday Fun: Music of the Shell","author":"Jeffery Hicks","date":"August 27, 2010","format":false,"excerpt":"We made it to the end of the week, and I don't know about you but I have my head buried in PowerShell work. But you know what they say about all work and no fun...so I figured I'd take a break from serious PowerShell and do something a little\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1085,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1085\/friday-fun-lets-play-bingo\/","url_meta":{"origin":1554,"position":2},"title":"Friday Fun: Let&#8217;s Play Bingo!","author":"Jeffery Hicks","date":"January 28, 2011","format":false,"excerpt":"Today Campers we're playing Bingo. Or at least getting ready to. This week I have some PowerShell code that will create a BINGO card. For those of you outside of North America you might need to take a crash course on this game. But even if you don't play, this\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":940,"url":"https:\/\/jdhitsolutions.com\/blog\/scripting\/940\/friday-fun-playing-with-strings\/","url_meta":{"origin":1554,"position":3},"title":"Friday Fun Playing with Strings","author":"Jeffery Hicks","date":"September 17, 2010","format":false,"excerpt":"While I was busy working, it turned into Friday which means time for a little PowerShell fun. I can't say you'll find any deep, meaningful, production use from today's post, but you might pick up a few techniques, which is really the point. Today we're going to have some fun\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1101,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1101\/friday-fun-more-powershell-bingo\/","url_meta":{"origin":1554,"position":4},"title":"Friday Fun &#8211; More PowerShell Bingo","author":"Jeffery Hicks","date":"February 4, 2011","format":false,"excerpt":"For last week's Friday Fun, I posted a PowerShell script to create a traditional Bingo card. I hoped you would also learn a few PowerShell concepts along the way. This week I've taken this to the next level, and have a complete module that not only creates the card but\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2011\/02\/powershellbingo-1024x519.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2011\/02\/powershellbingo-1024x519.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2011\/02\/powershellbingo-1024x519.png?resize=525%2C300 1.5x"},"classes":[]},{"id":1052,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/1052\/friday-fun-new-thriller\/","url_meta":{"origin":1554,"position":5},"title":"Friday Fun &#8211; New Thriller","author":"Jeffery Hicks","date":"January 14, 2011","format":false,"excerpt":"I read a lot of thrillers by authors like James Rollins, Jeff Long, Douglas Preston and Lincoln Childs. Certainly not high-brow literature, but generally well written and often a lot of fun. Of course with any fiction genre, there are certain thematic paradigms that must be followed, almost as if\u2026","rel":"","context":"In &quot;Friday Fun&quot;","block_context":{"text":"Friday Fun","link":"https:\/\/jdhitsolutions.com\/blog\/category\/friday-fun\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=1554"}],"version-history":[{"count":0,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1554\/revisions"}],"wp:attachment":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=1554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=1554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=1554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}