Re: How to find the difference between two lists (opposite of union[]?)
- To: mathgroup at smc.vnet.net
- Subject: [mg119914] Re: How to find the difference between two lists (opposite of union[]?)
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Wed, 29 Jun 2011 05:29:26 -0400 (EDT)
On 6/28/11 at 7:55 AM, Paul.McHale at 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];