can you tell me how i make a diffrent number from rand becuase it did work with me
#include <iostream> #include <cstdlib> using namespace std; int main() { srand(time(0)); int a[4]={}; for(int x=0;x<4;x++){ a[x]=rand() % 10; cout<<a[x]; } zero: if(a[0]==0){ a[0]=rand() %10; goto zero; } if(a[0]==a[1] ){ four: seven: one: a[0]=rand() %10; if(a[0]==0){ goto four; } } if(a[0]==a[2]){two: five: a[0]=rand() %10; if(a[0]==0){ goto five;} } if(a[0]==a[3]){six: a[0]=rand() %10; if(a[0]==0){ goto six; } if(a[1]==a[2]){ a[1]=rand() % 10