chance.h

Rom24/src/chance.h · 227 B

From the archive Wurm.tgz

Download the archive   « Back to the archive contents

/*
	The chance function needed a home in a .h file so I could use it.
	
	Remove it if you feel necessary.

	Liam Irish

*/


bool chance(int num)
{
    if (number_range(1,100) <= num) return TRUE;
    else return FALSE;
}     

Site Stats

Snippets: 1791
Codebases: 571