daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest Feb 16th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top