Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Non-repeated randumo numbers in powershell

$
0
0

Is there any way I can generate a set of random numbers? For instance, I need to generate a set of three numbers in an array and their combination cannot be repeated again 

EX:

X, Y, Z = 20, 23, 50

The set is 20, 23, 50 and as the script generate sets, 20,23,50 cannot be together in any other anymore not even as 50, 32, 20.

I know about the get-random cmdlet, but that does not help because it repeats numbers,


Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>