All pastes #188027 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-10-01 18:23 UTC
rendered paste body
#include <iostream>
#include <stdlib.h>

using namespace std;



long rnd(long a=0,long b=2147483647);

int main(void)
{
    srand(time(0));
    int zufall;
    zufall=rnd();
    cout << zufall << endl;
    system ("pause");
    return 0;
}

long rnd(long a,long b)
{
     return (rand() % (b-a+1)) + a;
     }