ALMaSS Rodenticide Model ODdox  1.0
ALMaSS_Setup.h File Reference

Classes

class  APoint
 A simple class defining an x,y coordinate set. More...
 

Macros

#define __64bit
 

Typedefs

typedef uint64 PointerInt
 
typedef __int32 uint32
 
typedef __int64 uint64
 

Functions

int random (int a_range)
 

Macro Definition Documentation

#define __64bit

Typedef Documentation

typedef uint64 PointerInt
typedef __int32 uint32
typedef __int64 uint64

Function Documentation

int random ( int  a_range)

References g_rand_uni.

Referenced by Landscape::AddBeetleBanks(), APoint::APoint(), Landscape::BorderScan(), RoadsideVerge::DoDevelopment(), Landscape::Landscape(), VegElement::RandomVegStartValues(), Landscape::ReadPolys2(), Population_Manager::Shuffle(), and UnsprayedFieldMargin::UnsprayedFieldMargin().

133  {
134  /* Want to raise exception on this?
135  if ( a_range <= 0 )
136  return 0;
137  */
138  //int result = (int)(((double) rand() / g_randmaxp ) * a_range);
139  return (int) (g_rand_uni()*a_range);
140  //return result;
141 }
boost::variate_generator< base_generator_type &, boost::uniform_real<> > g_rand_uni