Page MenuHomePhabricator (Chris)

funcs.h
No OneTemporary

Authored By
Unknown
Size
407 B
Referenced Files
None
Subscribers
None
#ifndef _funcs_h
#define _funcs_h
#include <stdlib.h>
namespace Util{
// int rnd( int q );
inline int rnd( int q ){
if ( q <= 0 ) return 0;
return (int)( rand() % q );
}
/* return a random number + some range between min/max */
int rnd( int q, int min, int max );
/* return a number between min/max */
int rnd( int min, int max );
void blend_palette( int * pal, int mp, int sc, int ec );
}
#endif

File Metadata

Mime Type
text/x-c++
Expires
Sat, Nov 14, 9:17 PM (9 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
151980
Default Alt Text
funcs.h (407 B)

Event Timeline