Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (timer < config->values[MY_NUMBER]){ /* code*/}
- typedef struct Config {
- float MY_FLOAT;
- unsigned int values[TOTAL_PARAMS];
- } Config;
- int main(int argc, char **argv) {
- Config *config = load_config();
- int timer = 0;
- int finish_time = config->values[FIN_TIME];
- int rand_min_max[2] = {config->values[MIN],config->values[MAX]};
- /*... code*/
- while (timer < finish_time) {
- randomizer_func(rand_min_max);
- /* Code*/
- }
- }
Add Comment
Please, Sign In to add comment