langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
10
Task/Best-shuffle/PowerShell/best-shuffle.psh
Normal file
10
Task/Best-shuffle/PowerShell/best-shuffle.psh
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
function Best-Shuffle($strings){
|
||||
foreach($string in $strings){
|
||||
$sa1 = $string.ToCharArray()
|
||||
$sa2 = Get-Random -InputObject $sa1 -Count ([int]::MaxValue)
|
||||
$string = [String]::Join("",$sa2)
|
||||
echo $string
|
||||
}
|
||||
}
|
||||
|
||||
Best-Shuffle "abracadabra", "seesaw", "pop", "grrrrrr", "up", "a"
|
||||
Loading…
Add table
Add a link
Reference in a new issue