/*PureCode*/
#include <iostream>
#include <time.h>
using namespace std;
void main(void)
{
int r[100] = {0};
int k=0;
srand( (unsigned)time( NULL ) );
//Rand in 100; 数组下标rand产生, for循环中i值保证插入不重复.
for(int i=1; i<100; ++i)
{
while(r[k=rand()%100]); //Note
r[k] = i;
}
for(i=0; i<100; ++i)
cout<<r[i]<<"/t";
}