Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Halp again. C woes... >_>
#1

Ok this time it is a simple thing that I just cannot "get".

I need to fill an array b[6] with random unique numbers 1-15. I can generate random numbers and everything just fine... I just cannot figure out a way to compare the generated number to the array already done to check if it is a duplicate. And of course if not a duplicate, put it in the array. Rinse and repeat.

Any ideas? Big Grin

[Image: signature.jpg]
Reply


Messages In This Thread
Halp again. C woes... >_> - by jwstohr - Feb 26, 2009, 12:13 PM
Halp again. C woes... >_> - by Drunken F00l - Feb 26, 2009, 01:23 PM
Halp again. C woes... >_> - by jwstohr - Feb 26, 2009, 01:44 PM
Halp again. C woes... >_> - by jwstohr - Feb 26, 2009, 02:00 PM
Halp again. C woes... >_> - by Drunken F00l - Feb 26, 2009, 02:11 PM
Halp again. C woes... >_> - by Versed - Feb 26, 2009, 06:14 PM
Halp again. C woes... >_> - by jwstohr - Feb 26, 2009, 10:54 PM
Halp again. C woes... >_> - by wieks - Feb 27, 2009, 09:26 PM
Halp again. C woes... >_> - by jwstohr - Feb 28, 2009, 03:13 AM
Halp again. C woes... >_> - by insomniaprincess - Feb 28, 2009, 10:11 AM

Forum Jump:


Users browsing this thread: