Ralph G Selfridge wrote: > But suppose I don't want equal weights attached to the elements of q?
What does this mean? One approach: select elements one at a time from q, by weight. Or, if weight for that number of elements is likely to be greater than 0.5, deselect elements one at a time from q, by weight. Once you have the elements, maybe you then want to permute them randomly? Or should heavier weighted elements tend to come first? -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
