Application of the identity matrix II. v05
Submitted By:
xhunga
Rating:





(
Rate It)
/* xkrndf.h freeware [[Email Removed]] */
/* ------------------------------ FUNCTION --------------------------- rndF() */
/*Call : time_t t; */
/* fraction f; */
/* */
/* srand(time(&t)); */
/* f = rndF(9,9); */
/* -------------------------------------------------------------------------- */
fraction rndF(int maxNumer, int maxDenom)
{
fraction f;
f.numer = rndI (maxNumer);
f.denom = rndpI(maxDenom);
return(miniF(f));
}
/* ------------------------------ FUNCTION --------------------------- rndF() */
/*Call : time_t t; */
/* fraction f; */
/* */
/* srand(time(&t)); */
/* f = rndF(9,9); */
/* -------------------------------------------------------------------------- */
fraction rndFI(
int maxNumer
)
{
fraction f;
f.numer = rndI (maxNumer);
f.denom = 1;
return(f);
}