scripts

My personal collection of scripts
git clone git://src.gearsix.net/scripts
Log | Files | Refs | Atom | README | LICENSE

random.ps1 (155B)


      1 # DESCRIPTION: Select a random item from all files in a directory
      2 $n = 1
      3 If ($args[0]) { $n = $args[0] }
      4 Get-Random -InputObject $(Get-ChildItem) -Count $n