view Random.h @ 53:fd2fd234a66c

BLV minimap: 2/3
author Nomad
date Wed, 24 Oct 2012 17:33:46 +0200
parents 8b8875f5b359
children
line wrap: on
line source

#pragma once


/*  304 */
#pragma pack(push, 1)
struct Random
{
  //----- (004BE365) --------------------------------------------------------
  inline Random()
  {
    Initialize(0x5CCE1E47u);
    min = 0;
    range = 99;
  }


  void SetRange(int min, int max);
  double GetRandom();
  int GetInRange();
  void Initialize(int seed);

  double field_0[5];
  int min;
  int range;
};
#pragma pack(pop)




extern struct Random *pRnd; // idb