#include<stdio.h> #include<stdlib.h> #include<time.h> int main() { srand((unsigned) time(NULL)); int n; if (!(n = rand() % 2)) n = n - 1; printf("%d ", n); }
#include<stdio.h> #include<stdlib.h> #include<time.h> int main() { srand((unsigned) time(NULL)); int n; if (!(n = rand() % 2)) n = n - 1; printf("%d ", n); }