#include //printf #include //rand #include //clock, time #include //fork #include //clock_t type int draw(const int, const int); int main(){ srand(time(NULL)); //seed randomizer int balls= 20; int urns[balls][2]; //initialize urns for (int i= 0; i < balls; ++i){ urns[i][0]= 1; //first urn urns[i][1]= 0; //second urn } int ktr1= balls, ktr2= 0, ran= 0, finish= 0; long long unsigned int iterCount= 0; do{ ran= ( draw(1, balls)) -1; //visualize urns pre-action printf("\nUrn 1: |"); for(int x=0 ; x