Private static int[] SorteiaNumerosSemRepetir(int quantidade, int minimo, int maximo){ List numerosSorteados = new List(); return numerosSorteados.ToArray();}12345Private Function SorteiaNumerosSemRepetir(quantidade As Integer, minimo As Integer, maximo As Integer) As Integer() Dim numerosSorteados As New List(Of Integer)() Return numerosSorteados.ToArray()End Function
marinatagomori
Private static int[] SorteiaNumerosSemRepetir(int quantidade, int minimo, int maximo){ List numerosSorteados = new List(); return numerosSorteados.ToArray();}12345Private Function SorteiaNumerosSemRepetir(quantidade As Integer, minimo As Integer, maximo As Integer) As Integer() Dim numerosSorteados As New List(Of Integer)() Return numerosSorteados.ToArray()End Function