
-----------------------------------
Geostigma
Thu May 17, 2007 10:35 pm

C++ Randint.. nucence
-----------------------------------
I seriously fail to see why c++ does random int's the way it does.

std::rand()% 'x' picks a random number between 1 and like 22000 something crazy

this is my rand int program.
float randint(int *num1, int num2)
{
      
      float num;
      std::srand(num2);
      *num1 = std::rand();
      num = *num1 + num2;
      return num;
}

int main()
{
    int num1,num2 = 1;
    std::cout 