|
[Date Index]
[Thread Index]
[Author Index]
Re: Rearrangement of a sequence into random order
- To: mathgroup at smc.vnet.net
- Subject: [mg28437] Re: [mg28434] Rearrangement of a sequence into random order
- From: maarten.vanderburgt at icos.be
- Date: Thu, 19 Apr 2001 03:26:25 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Loren,
Try the following:
<<DiscreteMath`Permutations`\
n = 20;
RandomPermutation[20]
I think this does what you want.
Maarten van der Burgt
Leuven
Belgium
"Loren Dill" <lorendill at mediaone.net> on 18-04-2001 09:23:38 AM
cc:
Subject: [mg28437] [mg28434] Rearrangement of a sequence into random order
Hi,
I'm a math teacher, and need to prepare exams from time to time. I
typically prepare questions for the exam in a sequential order starting at
the beginning of the material and going to the end. I may have something
like 20 short-answer questions. I want a program that will randomize the
order of the questions. In other words, I want to provide n, the number of
questions, and have the program provide a list of length n that contains
all
the numbers from 1 to n in a random order without any number being repeated
or omitted. I'm sure that this is an easy task for Mathematica, but I
can't
figure out the best way to do it.
Loren Dill
Prev by Date:
Re: Summation Formulae Table
Next by Date:
Re: Rearrangement of a sequence into random order
Previous by thread:
Re: Rearrangement of a sequence into random order
Next by thread:
Re: Rearrangement of a sequence into random order
|