Add rayman2 source files
This commit is contained in:
23
Rayman_X/cpa/tempgrp/SND/src/Win95/sndrnd.c
Normal file
23
Rayman_X/cpa/tempgrp/SND/src/Win95/sndrnd.c
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
//////////////////////////////////////////////////////
|
||||
// SNDRND.CXX - Librairie SOUNDxd version 2.0 //
|
||||
//////////////////////////////////////////////////////
|
||||
// G<>n<EFBFBD>ration de nombres al<61>atoires //
|
||||
//////////////////////////////////////////////////////
|
||||
*/
|
||||
|
||||
#include "SNDinc.h"
|
||||
#include "sndrnd.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
//---------------------------------------------------------
|
||||
// G<>n<EFBFBD>ration d'un SndReal al<61>atoire de valeur comprise entre 0.0 et max
|
||||
//---------------------------------------------------------
|
||||
SndReal SND_fn_rGetRandomSnd(SndReal max)
|
||||
{
|
||||
return SND_fn_rMulRealRealQuickSnd(
|
||||
SND_fn_rDivRealRealSnd(rand(),RAND_MAX)
|
||||
,max);
|
||||
}
|
||||
|
Reference in New Issue
Block a user