I want my index to be a random number that is equal to my questions. I have a list of 33 questions which is indexed from 0-32. I have this idea that I will get random questions everytime with help of my index. This works but I still get duplicates. How do I prevent this?
@if (questionIndex23 < 10)
{
<div class="app-title">
@Questions[kuken].Category
</div>
Here I get a random category from my list "question" with help of my index.
public void Hannes()
{
Random slump = new Random();
kuken = slump.Next(1, 32);
}
This is the method I've written to get random numbers for my index.