Guest User

Untitled

a guest
Feb 16th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. while (timer < config->values[MY_NUMBER]){ /* code*/}
  2.  
  3. typedef struct Config {
  4. float MY_FLOAT;
  5. unsigned int values[TOTAL_PARAMS];
  6. } Config;
  7.  
  8. int main(int argc, char **argv) {
  9.  
  10. Config *config = load_config();
  11.  
  12. int timer = 0;
  13. int finish_time = config->values[FIN_TIME];
  14.  
  15. int rand_min_max[2] = {config->values[MIN],config->values[MAX]};
  16.  
  17. /*... code*/
  18.  
  19. while (timer < finish_time) {
  20. randomizer_func(rand_min_max);
  21. /* Code*/
  22. }
  23. }
Add Comment
Please, Sign In to add comment