Re: preparing multiple choice questions
- To: mathgroup at smc.vnet.net
- Subject: [mg63379] Re: preparing multiple choice questions
- From: ggroup at sarj.ca
- Date: Tue, 27 Dec 2005 06:15:46 -0500 (EST)
- References: <200512260959.EAA20859@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
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]
- References:
- preparing multiple choice questions
- From: "Baris Erbas" <berbas@anadolu.edu.tr>
- preparing multiple choice questions