Advertisement
zhar66

RIFT

Nov 19th, 2017
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.03 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     short bina;
  7.     short two = 2;
  8.     short fiv = 5;
  9.  
  10.     int thr = 0;
  11.  
  12.     char xyz[] = {'-', 'x', 'y', 'z'};
  13.     int z = 0;
  14.  
  15.     char lat[] = "lat:";
  16.     char alt[] = "alt:";
  17.  
  18.     int l = 0;
  19.     int a = 0;
  20.  
  21.     short x = 0;
  22.     int cou = 0;
  23.     int wait = 0;
  24.     while(x!=1){
  25.  
  26.         while(cou != 27){
  27.              printf("%c%c%c", xyz[z = 0 + (rand() % 3)],xyz[z = 0 + (rand() % 3)],xyz[z = 0 + (rand() % 3)]);
  28.             bina = rand() % 2;
  29.  
  30.             if(cou == 9)printf("-%i-", two);
  31.             if(cou == (9 * 2))printf("-%i-", two);
  32.             printf("%i", bina);
  33.  
  34.             if(cou == 25){
  35.                 printf("-%i%i%i", fiv, fiv, fiv);
  36.                 printf("\n");
  37.                 cou = 0;
  38.  
  39.                  l = 0 + (rand() % 360);
  40.                     a = 0 + (rand() % 360);
  41.                     printf("%s%i\n", lat, l);
  42.                     printf("%s%i\n", alt, a);
  43.             }
  44.             cou++;
  45.         }
  46.  
  47.     }
  48.     return 0;
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement