All pastes #829552 Raw Edit

Stuff

public text v1 · immutable
#829552 ·published 2007-12-23 07:17 UTC
rendered paste body
                temprand = rand.Next(quiztemp.totalQuestions());
                

                while(questions.Exists(ContainsRand))
                {
                    temprand = rand.Next(quiztemp.totalQuestions());
                }
                questions.Add(temprand);

List<int> questions = new List<int>();
            Random rand = new Random();

            int r = rand.Next();
            if (!questions.Contains(r))
                questions.Add(r);