This commit is contained in:
Emmanuel Srivastava
2024-12-09 14:58:52 +01:00
parent 4dc8010741
commit 16332fec34
12 changed files with 105 additions and 16 deletions

View File

@@ -0,0 +1,12 @@
#include "hue.h"
int hue(void) {
int choice = rand()%3;
if (choice == 0) {
return RED;
} else if (choice == 1) {
return GREEN;
} else /* if (choice == 2) */ {
return BLUE;
}
}