17 lines
349 B
C
17 lines
349 B
C
#include "random.h"
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
|
|
int main() {
|
|
uint32_t seed;
|
|
printf("Enter seed: ");
|
|
scanf("%u", &seed);
|
|
set_random_seed(seed);
|
|
uint32_t num = random_range(20);
|
|
for (uint32_t i = 0; i < num; i++) {
|
|
printf("%u\n", random_u32());
|
|
}
|
|
printf("%u random numbers\n", num);
|
|
return 0;
|
|
}
|