MathGroup Archive 2005

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

Search the Archive

Re: For Loop and Array related


Hi

You could try:

Lattice = RandomComposition[16000, 100]

which strikes me as a suitably Mathematica-type way of getting the list
you would like.  As for performance, my Mathematica is currently
defunct so I haven't been able to check it.  RandomComposition[] is a
function from the Combinatorica package.

Regards
Mark Westwood


  • Prev by Date: Re: For Loop and Array related
  • Next by Date: Re: Text Manipulation
  • Previous by thread: Re: For Loop and Array related
  • Next by thread: Re: For Loop and Array related