From 2708b0307a0adf29699264fdc901f18feffb5ceb Mon Sep 17 00:00:00 2001 From: SaffronCR Date: Fri, 19 Jul 2019 21:29:47 +0200 Subject: [PATCH] Removed unnecesary file. --- fusion-c/examples/random-number..c | 41 ------------------------------ 1 file changed, 41 deletions(-) delete mode 100644 fusion-c/examples/random-number..c diff --git a/fusion-c/examples/random-number..c b/fusion-c/examples/random-number..c deleted file mode 100644 index f29fc18..0000000 --- a/fusion-c/examples/random-number..c +++ /dev/null @@ -1,41 +0,0 @@ -// -// Fusion-C -// Pseudo Random Number -// -#include -#include -#include "fusion-c/header/msx_fusion.h" - -TIME tm; //Init the Time Structure variable - - -/* --------------------------------- - FT_Random - Return a Random Number - between a and b-1 ------------------------------------*/ -char FT_RandomNumber (char a, char b) -{ - char random; - - random = rand()%(b-a)+a; - return(random); -} - - -void main(void) -{ - char n,i; - - GetTime(&tm); // Retreive MSX-DOS Clock, and set the tm strucutre with clock's values - srand(tm.sec); // use current clock seconds as seed in the random generator - - for(i=0;i < 10; i++) - { - n=FT_RandomNumber(1,101); // Choose random number between 1 and 100 - printf("%d,",n); - } - - Exit(0); -} - \ No newline at end of file