grand.h File Reference

#include <g_types.h>

Go to the source code of this file.

Defines

#define g_rand_boolean(rand)   (g_rand_int ((rand)) & (1<<15))
#define g_random_boolean()   (g_rand_boolean ((rand)))

Typedefs

typedef typedefG_BEGIN_DECLS
struct _GRand 
GRand

Functions

GRandg_rand_new_with_seed (guint32 seed)
GRandg_rand_new (void)
void g_rand_free (GRand *rand)
void g_rand_set_seed (GRand *rand, guint32 seed)
guint32 g_rand_int (GRand *rand)
gint32 g_rand_int_range (GRand *rand, gint32 begin, gint32 end)
gdouble g_rand_double (GRand *rand)
gdouble g_rand_double_range (GRand *rand, gdouble begin, gdouble end)
void g_random_set_seed (guint32 seed)
guint32 g_random_int (void)
gint32 g_random_int_range (gint32 begin, gint32 end)
gdouble g_random_double (void)
gdouble g_random_double_range (gdouble begin, gdouble end)


Define Documentation

#define g_rand_boolean ( rand   )     (g_rand_int ((rand)) & (1<<15))

Definition at line 52 of file grand.h.

 
#define g_random_boolean (  )     (g_rand_boolean ((rand)))

Definition at line 65 of file grand.h.


Typedef Documentation

typedef typedefG_BEGIN_DECLS struct _GRand GRand

Definition at line 34 of file grand.h.


Function Documentation

gdouble g_rand_double ( GRand rand  ) 

gdouble g_rand_double_range ( GRand rand,
gdouble  begin,
gdouble  end 
)

void g_rand_free ( GRand rand  ) 

guint32 g_rand_int ( GRand rand  ) 

gint32 g_rand_int_range ( GRand rand,
gint32  begin,
gint32  end 
)

GRand* g_rand_new ( void   ) 

GRand* g_rand_new_with_seed ( guint32  seed  ) 

void g_rand_set_seed ( GRand rand,
guint32  seed 
)

gdouble g_random_double ( void   ) 

gdouble g_random_double_range ( gdouble  begin,
gdouble  end 
)

guint32 g_random_int ( void   ) 

gint32 g_random_int_range ( gint32  begin,
gint32  end 
)

void g_random_set_seed ( guint32  seed  ) 


Generated on Tue Jul 5 15:58:43 2011 for ROOT_528-00b_version by  doxygen 1.5.1