13 lines
176 B
C
13 lines
176 B
C
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include<time.h>
|
|
#include "lightness.h"
|
|
|
|
int lightness(void) {
|
|
if (time(NULL)%2) {
|
|
return LIGHT;
|
|
} else {
|
|
return DARK;
|
|
}
|
|
}
|