Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F623471
funcs.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
407 B
Referenced Files
None
Subscribers
None
funcs.h
View Options
#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
Details
Attached
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)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline