Random Numbers To Equation

I'm having a small problem, well actually large problem. I have to use RandomNumbers in order to determine specific attributes that other attributes rely on, but must have a base number to have additional attribute points added to them. But this portion can not effect the original displayed portion.

An example of what I mean is (of course not actual VB ) :

if variable1 = RandomNumber(3,18) then

if variable1 >= 16 then

variable2 = RandomNumber(1,6)

if variable1 <=18 then

variable2 = RandomNumber(1,6)

if variable1 <= 15 then

variable2 = 0

if variable3 = variable1 + variable2

if BaseVariable = Variable3 then

SubVariable1 = BaseVariable + SubVariable 2

SubVariable2 = RandomNumber(1,6)

if BaseVariable = Variable3 then

AdditionalVariables = pva1 + pva2 + pv3 + pv4 + pv11

The only thing that is bad about this, is that because the base variable can't be changed because it effects other categories. The new Base Variable has to be shown on a display. So in the long run there has to be a series of base variables that has to be able be added to.

PLEASE HELP!

[2283 byte] By [CelestialStar] at [2007-12-24]