I am very new to C# programing, i know other languages (high level) but i dont know how i could do this. I want to make a list [] that contains random set order numbers but it will only create numbers from another list e.g NumberLis = [0,1]
NumberList = [0,1]
list = [NumberList(random(0,1))]
i know how to do this in python, Python code for what im trying to do (if that helps) import random
NumberList = [0,1] #The set numbers
List = []
for i in range(10):
List.append(NumberList[random.randint(0,1)])
print(List)