grand.h File Reference

API published in:
API deprecated in:


#include <_ansi.h>
#include <glib/gtypes.h>

Go to the source code of this file.


Defines

#define  g_rand_boolean(rand_)   ((g_rand_int (rand_) & (1 << 15)) != 0)
#define  g_random_boolean()   ((g_random_int () & (1 << 15)) != 0)

Typedefs

typedef typedefG_BEGIN_DECLS
struct _GRand 
GRand

Functions

IMPORT_C GRand g_rand_new_with_seed (guint32 seed)
IMPORT_C GRand g_rand_new_with_seed_array (const guint32 *seed, guint seed_length)
IMPORT_C GRand g_rand_new (void)
IMPORT_C void  g_rand_free (GRand *rand_)
IMPORT_C GRand g_rand_copy (GRand *rand_)
IMPORT_C void  g_rand_set_seed (GRand *rand_, guint32 seed)
IMPORT_C void  g_rand_set_seed_array (GRand *rand_, const guint32 *seed, guint seed_length)
IMPORT_C guint32  g_rand_int (GRand *rand_)
IMPORT_C gint32  g_rand_int_range (GRand *rand_, gint32 begin, gint32 end)
IMPORT_C gdouble  g_rand_double (GRand *rand_)
IMPORT_C gdouble  g_rand_double_range (GRand *rand_, gdouble begin, gdouble end)
IMPORT_C void  g_random_set_seed (guint32 seed)
IMPORT_C guint32  g_random_int (void)
IMPORT_C gint32  g_random_int_range (gint32 begin, gint32 end)
IMPORT_C gdouble  g_random_double (void)
IMPORT_C gdouble  g_random_double_range (gdouble begin, gdouble end)

Define Documentation

#define g_rand_boolean rand_   )     ((g_rand_int (rand_) & (1 << 15)) != 0)
 
#define g_random_boolean
 
 )     ((g_random_int () & (1 << 15)) != 0)
 

Typedef Documentation

typedef typedefG_BEGIN_DECLS struct _GRand GRand
 

Function Documentation

IMPORT_C GRand* g_rand_copy GRand rand_  ) 
 
IMPORT_C gdouble g_rand_double GRand rand_  ) 
 
IMPORT_C gdouble g_rand_double_range GRand rand_,
gdouble  begin,
gdouble  end
 
IMPORT_C void g_rand_free GRand rand_  ) 
 
IMPORT_C guint32 g_rand_int GRand rand_  ) 
 
IMPORT_C gint32 g_rand_int_range GRand rand_,
gint32  begin,
gint32  end
 
IMPORT_C GRand* g_rand_new void   ) 
 
IMPORT_C GRand* g_rand_new_with_seed guint32  seed  ) 
 
IMPORT_C GRand* g_rand_new_with_seed_array const guint32 seed,
guint  seed_length
 
IMPORT_C void g_rand_set_seed GRand rand_,
guint32  seed
 
IMPORT_C void g_rand_set_seed_array GRand rand_,
const guint32 seed,
guint  seed_length
 
IMPORT_C gdouble g_random_double void   ) 
 
IMPORT_C gdouble g_random_double_range gdouble  begin,
gdouble  end
 
IMPORT_C guint32 g_random_int void   ) 
 
IMPORT_C gint32 g_random_int_range gint32  begin,
gint32  end
 
IMPORT_C void g_random_set_seed guint32  seed  ) 
 

Copyright © Nokia Corporation 2001-2008
Back to top