Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- short bina;
- short two = 2;
- short fiv = 5;
- int thr = 0;
- char xyz[] = {'-', 'x', 'y', 'z'};
- int z = 0;
- char lat[] = "lat:";
- char alt[] = "alt:";
- int l = 0;
- int a = 0;
- short x = 0;
- int cou = 0;
- int wait = 0;
- while(x!=1){
- while(cou != 27){
- printf("%c%c%c", xyz[z = 0 + (rand() % 3)],xyz[z = 0 + (rand() % 3)],xyz[z = 0 + (rand() % 3)]);
- bina = rand() % 2;
- if(cou == 9)printf("-%i-", two);
- if(cou == (9 * 2))printf("-%i-", two);
- printf("%i", bina);
- if(cou == 25){
- printf("-%i%i%i", fiv, fiv, fiv);
- printf("\n");
- cou = 0;
- l = 0 + (rand() % 360);
- a = 0 + (rand() % 360);
- printf("%s%i\n", lat, l);
- printf("%s%i\n", alt, a);
- }
- cou++;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement