Page 1 of 1

cRandomizer

Posted: Sun Sep 29, 2019 10:57 pm
by AckiB
:windows: :linux:

The cRandomizer class I made to create random numbers...
Its easy to use...

Code: Select all

	cRandomizer rndmzr;
	
	// get an integer value from 10 to 20 (incl.)
	int iVal = rndmzr.Rndi(10, 20);
	
	// get a float value from 10.0 to 20.0 (incl.)
	float fVal = rndmzr.Rndf(10, 20);