mercredi 29 novembre 2017

Why does it show same random number when i run it as a script? #PowerShell

Hello guys when i run this script:

$RandomNumber = Get-Random
$RandomNumber
$RandomNumber

it prints the same number twice

But when i type Get-Random command in console and do it again it gives different numbers.

Can you please tell me why it happens?

Thanks in advance! :)




Aucun commentaire:

Enregistrer un commentaire