MathGroup Archive 2002

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

Search the Archive

random derangement

This is not quite aposite to either NG, but there appear to be none better
... My apologies.

I am searching for an algorithm for producing a random derangement of, for
instance, the integers 1 to approx 10000.

I thought Skiena's site might have such an algorithm, but I could not locate
one. ... Producing all derangements and choosing one at random is marginally
beyond the capacity of my machine :-)


Mark R. Diamond

  • Prev by Date: Approximation of complex solutions
  • Next by Date: Re: Cylindrical coords in PlotVectorField3D
  • Previous by thread: RE: Approximation of complex solutions
  • Next by thread: Re: random derangement