Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #3408
| From | "McHale, Paul" <Paul.McHale@excelitas.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: How to find the difference between two lists (opposite of union[]?) |
| Date | 2011-06-30 20:56 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <iuinul$kv5$1@smc.vnet.net> (permalink) |
Thank you everyone for the many posts. I know there had to be an easier way. Went through the documentation but embarrassingly stepped right over it.
Thanks again,
Paul
Paul McHale | Electrical Engineer, Energetics Systems | Excelitas Technologies Corp.
Phone: +1 937.865.3004 | Fax: +1 937.865.5170 | Mobile: +1 937.371.2828
1100 Vanguard Blvd, Miamisburg, Ohio 45342-0312 USA
Paul.McHale@Excelitas.com
www.excelitas.com
Please consider the environment before printing this e-mail.
This email message and any attachments are confidential and proprietary to Excelitas Technologies Corp. If you are not the intended recipient of this message, please inform the sender by replying to this email or sending a message to the sender and destroy the message and any attachments.
Thank you
-----Original Message-----
From: Bill Rowe [mailto:readnews@sbcglobal.net]
Sent: Wednesday, June 29, 2011 5:29 AM
Subject: Re: How to find the difference between two lists (opposite of union[]?)
On 6/28/11 at 7:55 AM, Paul.McHale@excelitas.com (McHale, Paul)
wrote:
>I want to generate 1000 random integers between 1 and 1000. Then
>find out what numbers between 1 and 1000 were not generated.
generatedNumbers==RandomInteger[{1,1000},{1000}];
missingNumbers == Complement[Range[1000],generatedNumbers];
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: How to find the difference between two lists (opposite of union[]?) "McHale, Paul" <Paul.McHale@excelitas.com> - 2011-06-30 20:56 +0000
csiph-web