Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main () {
- char command[20];
- int rng4Bit = rand() % (15 + 1 - 0) + 0;
- long rng8Bit = rand() % (127 + 1 - 0) + 0;
- long rng16Bit = rand() % (65535 + 1 - 0) + 0;
- long rng32Bit = rand() % (2147483647 + 1 - 0) + 0;
- printf("CubeBot is currently functioning, please enter a command \n");
- scanf("%s", command);
- if (command == ";rng4");
- printf("%d", rng4Bit);
- else if (command == ";rng8");
- printf("%d", rng8Bit);
- else if (command == ";rng16");
- printf("%d", rng16Bit);
- else if (command == ";rng32");
- printf("%d", rng32Bit);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement