View Single Post
Old Feb 14th, 2007, 8:54 AM   #3
InfoGeek
Professional Programmer
 
InfoGeek's Avatar
 
Join Date: Jun 2005
Location: India, The great.
Posts: 435
Rep Power: 4 InfoGeek is on a distinguished road
or you can do something like...
  for(i=0;i<100;++i)
     a[i] = i+1;

  for(i=0;i<100;++i)
     swap(a[i], a[rand()%100]);
__________________
PFO - My daily dose of technology.
InfoGeek is offline   Reply With Quote