All pastes #352316 Raw Edit

Stuff

public text v1 · immutable
·published 2007-02-12 19:09 UTC
rendered paste body
#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;

int createArray(int& arrayOne);

int randomNumbers(int randomNumber);

int oddNumber(int& randomNumber);

int main(void)
{

	return 0;
}


int createArray(int& arrayOne, int& randomNumber)
{
	arrayOne[20]= randomNumber;

}

int randomNumbers(int randomNumber)
{
    srand((unsigned)time(0)); 
    int low=0;
	int high=50; 
    int range=(high-low)+1; 
    for(int i=0; i<50; i++)
	{ 
        randomNumber = low+int(range*rand()/(RAND_MAX + 1.0)); 

    } 
}


int oddNumber(int& randomNumber)
{
	if (randomNumber%2 != 0)
	{
		return oddNumber;
	}
	else
		return 0;
}