for (int i = 0; i <1 ; i++) { srand((unsigned)time(NULL)); ran(a,6); for (int i = 0; i < 6; i++) if ( 1!=0; i++) if (1==0; i--) if( 2!=0,1;i++) if(2==0,1;i--) if( 3!=0,1,2,i++) if( 3==0,1,2,i--) if( 4!=0,1,2,3;i++) if( 4==0,1,2,3;i--) if( 5!=0,1,2,3,4;i++) if( 5==0,1,2,3,4;i--) if( 6!=0,1,2,3,4,5;i++) if( 6==0,1,2,3,4,5;i--) srand((unsigned) time(NULL)); { cout << a[i] << " "; cout << endl; }}

MOD EDIT: When posting code...USE CODE TAGS!!!

This post has been edited by **JackOfAllTrades**: 03 November 2010 - 03:35 AM