main() { unsigned int i, n; random_start(); for (i = 0; i < 10; i++) printf("%d\t", random()); printf("\n"); }
void random_init () { if (initialized) random_update (); else { random_start (); while (!nupdates) acheck (); } }
void new_city (int* originx, int* originy, int random_village) { clear_game (); coal_reserve_setup (); setup_river (); ore_reserve_setup (); init_pbars (); /* Initial population is 100 for empty board or 200 for random village (100 are housed). */ people_pool = 100; if (random_village != 0) { random_start (originx, originy); update_pbar(PPOP,200,1); /* So pbars don't flash */ } else { *originx = *originy = WORLD_SIDE_LEN/2 ; update_pbar(PPOP,100,1); } connect_transport (1,1,WORLD_SIDE_LEN-2,WORLD_SIDE_LEN-2); refresh_pbars (); }