Hello Devs, (beginner here )
I have a code in Windows Forms 2022 C# .Net framework
I have a list
and a qnum check
The goal here is to have random chosen "questions", not duplicated. Idk is that the way it should be done. Github repo: https://github.com/ykostov/driving-flyers/tree/main/driving5 .
Best Regards,
ykostov
I have a code in Windows Forms 2022 C# .Net framework
I have a list
C#:
public List<int> qList = new List<int>(26);
C#:
Random r = new Random();
int qnum = r.Next(1, 25);
if (qList.Contains(qnum)) { wasChosen = true; }
else
{
if (wasChosen == false)
Best Regards,
ykostov
Last edited by a moderator: