Re: Increasing scattered subsequence
- To: mathgroup at smc.vnet.net
- Subject: [mg80252] Re: Increasing scattered subsequence
- From: "Dana DeLouis" <dana.del at gmail.com>
- Date: Wed, 15 Aug 2007 04:30:17 -0400 (EDT)
> s = Ordering@RandomReal[{0, 1}, n^2 + 1]; As a side note, the v 6 Combinatorica abandoned the more complex Compiled version of "RandomPermutation" in favor of using the newer Function "RandomSample." Has the same timing as previous, just simpler. RandomPermutation[n_Integer] := RandomSample[Range[n]] Dana