Facebook
From dadazda, 1 Month ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 143
  1. # Définir la chaîne initiale
  2. $chaine = "CeciEstUneChaineDeCaracteres"
  3.  
  4. # Générer une liste d'indices aléatoires pour insérer les espaces
  5. $indices = Get-Random -Count ($chaine.Length - 1) -InputObject (0..($chaine.Length - 2)) | Sort-Object
  6.  
  7. # Insérer un espace à chaque indice aléatoire
  8. foreach ($index in $indices) {
  9.     $chaine = $chaine.Insert($index, " ")
  10. }
  11.  
  12. # Afficher le résultat
  13. Write-Host $chaine
  14.  

Replies to Untitled rss

Title Name Language When
Re: Untitled dedede text 1 Month ago.