MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: preparing multiple choice questions


On Monday, December 26, 2005 at 04:59 GMT -0500, Baris Erbas wrote:

<snip>
> I want to automatically assign the question numbers and and the
> correct answers using mathematica. All correct answers should be in
> equal quantity, i.e. 6 a, 6 b, . 6 e.
<snip>
> Is there a way of doing this in Mathematica?

Try the RandomPermutation function in the Combinatorica package:

<< DiscreteMath`Combinatorica`
ans = Table[Mod[i, 5], {i, 30}] /. {1 -> a, 2 -> b, 3 -> c, 4 -> d, 0 -> e}
randAns = RandomPermutation[ans]


  • Prev by Date: Re: preparing multiple choice questions
  • Next by Date: Re: preparing multiple choice questions
  • Previous by thread: Re: preparing multiple choice questions
  • Next by thread: Re: preparing multiple choice questions