All pastes #829547 Raw Edit

Stuff

public text v1 · immutable
#829547 ·published 2007-12-23 07:11 UTC
rendered paste body
                temprand = rand.Next(quiztemp.totalQuestions());
                
                while(questions.Exists(ContainsRand))
                {
                    temprand = rand.Next(quiztemp.totalQuestions());
                }
                questions.Add(temprand);


        private bool ContainsRand(int i)
        {
            if (i == temprand)
            {
                return true;
            }
            else
            {
                return false;
            }
        }