Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $wc = New-Object Net.WebClient
- $list = $wc.DownloadString("https://raw.githubusercontent.com/metalx1000/MyBin/master/games/nes/linux/rom.lst")
- $roms = @{}
- foreach ($rom in $list)
- {
- $roms.add($rom,(Get-Random -Maximum $list.count))
- } #end foreach
- $url = ($roms.GetEnumerator() | sort{get-random} | select -First 5)
- $url | get-member
- $url.key
- $file = "rom.zip"
- #$wc.DownloadFile($url,$file)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement