Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1995
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1995

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

Search the Archive

Re: Re: Unique List

  • To: mathgroup at CHRISTENSEN.CYBERNETICS.NET
  • Subject: [mg378] Re: [mg370] Re: [mg358] Unique List
  • From: Lou Talman <me at talmanl.mscd.edu>
  • Date: Wed, 28 Dec 94 22:05:12 -0700

Here is a nonrecursive solution to the Lotto problem:

l = Table[k, {k, 42}];
m = l; Table[j = Random[Integer, {l, Length[m]}];
             k = m[[j]];
             m = Delete[m, j]; k,
                                  {6}]


  • Next by Date: Re: Re: Suggestions needed for Mathematica course
  • Next by thread: Re: Unique List