MathGroup Archive 1994

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

Search the Archive

Unique List

  • To: mathgroup at christensen.Cybernetics.NET
  • Subject: [mg358] Unique List
  • From: Robert B. Love <rlove at>
  • Date: Mon, 26 Dec 94 11:42:47 -0700

OK, time for a little fun.  I can generate a list of random  
integers as    Table[Random[Integer,{1,42}],{6}] and I get a list 6  
elements long containing the integers from 1 to 42.  But how do I  
make sure
no elements are repeated.

I'm trying to simulate a lottery pick of 6 numbers between 1 and 42  
but no repeats are allowed.  Any clever tricks to get a list with  
no members repeated?

Thanx, Good Luck and Happy New Year to all.

  • Prev by Date: Extract plot range from mma
  • Next by Date: Messages[] Problem/bug?
  • Previous by thread: Re: Extract plot range from mma
  • Next by thread: Re: Unique List