ALMaSS Rodenticide ODdox  1.1
The rodenticide model description following ODdox protocol
ALMaSS_Setup.h File Reference

Classes

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

Macros

#define __UNIX
 
#define __64bit
 

Typedefs

typedef unsigned int uint32
 
typedef unsigned long long uint64
 
typedef uint64 PointerInt
 

Functions

int random (int a_range)
 

Macro Definition Documentation

◆ __64bit

#define __64bit

◆ __UNIX

#define __UNIX

Typedef Documentation

◆ PointerInt

typedef uint64 PointerInt

◆ uint32

typedef unsigned int uint32

◆ uint64

typedef unsigned long long uint64

Function Documentation

◆ random()

int random ( int  a_range)
142  {
143  /* Want to raise exception on this?
144  if ( a_range <= 0 )
145  return 0;
146  */
147  //int result = (int)(((double) rand() / g_randmaxp ) * a_range);
148  return (int) (g_rand_uni()*a_range);
149  //return result;
150 }

References g_rand_uni.

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

g_rand_uni
boost::variate_generator< base_generator_type &, boost::uniform_real<> > g_rand_uni