testrand.c (450B)
1/* 2 fonts.c 3 Simple example of how to use multiple fonts on the GB 4 Michael Hope, 1999. 5*/ 6 7#include <stdio.h> 8#include <rand.h> 9 10#include <gbdk/platform.h> 11 12#include <gbdk/console.h> 13 14void main(void) 15{ 16 while(TRUE) { 17 puts("press A..."); 18 waitpad(J_A); 19 initarand(sys_time); 20 for (uint8_t i = 0; i != 16; i++) 21 printf("rand=%hx arand=%hx\n", (uint8_t)rand(), (uint8_t)arand()); 22 } 23} 24 25 26