need help with random functions....

first off, thank you for the responses already!

I started laying out the initial perimeters of the program.
now:
//i need to have one of the "outPins" go LOW. Pressing the button shorts out a capacitor (on an RC circuit) on a PCB , not allowing it to charge and trigger a Mosfet, which in turn will trigger a relay. When said pin goes low, I figured I would run an additional wire from the switch (now in a low state) to an "inPin" (acting as a normally open switch) , so the arduino would know it was pressed, in turn randomly turning on another outPin and allowing the pin to return to a HIGH state. i will draw up a schematic asap.

Im sorry if I am unclear on any of this, I appreciate everyone bearing with me. Thanks again!

int out1Pin=2;
int out2Pin=3;
int out3Pin=4;
int out4Pin=5;
int in1Pin=6;
int in2Pin=7;
int in3Pin=8;
int in4Pin=9;
int ledPin=10;
int beeperPin=11;
void setup()
{
pinMode (out1Pin, OUTPUT);
pinMode (out2Pin, OUTPUT);
pinMode (out3Pin, OUTPUT);
pinMode (out4Pin, OUTPUT);
pinMode (beeperPin, OUTPUT);
pinMode (in1Pin, INPUT);
pinMode (in2Pin, INPUT);
pinMode (in3Pin, INPUT);
pinMode (in4Pin, INPUT);
pinMode (ledPin, OUTPUT);
digitalWrite (out1Pin, HIGH);
digitalWrite (out2Pin, HIGH);
digitalWrite (out3Pin, HIGH);
digitalWrite (out4Pin, HIGH);
digitalWrite (in1Pin, HIGH);
digitalWrite (in2Pin, HIGH);
digitalWrite (in3Pin, HIGH);
digitalWrite (in4Pin, HIGH);
digitalWrite (ledPin,LOW);
digitalWrite (beeperPin, LOW);
}
void loop()
{
}

//I just realized I only need one "inPin" as all it will do is "reset" the function once a button is pushed ( sending the LOW signal from the button to the board)...