# How do you determine the number of ways a computer can randomly generate two integers whose sum is 8 from 1 through 12?

##### 1 Answer

#### Answer

#### Answer:

#### Explanation

#### Explanation:

#### Answer:

Some comments to get you started. The problem may not have been well-enough defined.

#### Explanation:

First, the problem has to be well defined.

A) If the problem is to generate random integers, will the choice of numbers used to generate the sum only be in the set of values:

- This leads to another important mathematical question:

Does "sum" mean simply "addition", or is it the mathematical "sum", which includes both adding and subtracting?

If that is the case, **none of the numbers # X_A = {8, 9, 10, 11, 12} # can be selected**, since all of the numbers are positive and there is no other number in the set

Suppose the problem is as described in A), and that "sum" only means "addition". Then, the solution is easy to find - just make a list of the possible combinations, then count them.

Okay, we shall to do this the easy way...

List:

It looks as though we have all the possible combinations.

**There are only 7 ways.**

**NB****All the computer needs to do is pick one of the numbers**in the set# S_A = {1, 2, 3, ,,, , 7} # .**The second number can't be random**, since once the first one is generated, the second one is determined.

**We really may not be finished with the problem.**

B) If the problem is really asking about integers (including both positive and negative values) and the list given should really be

There are 24 numbers from which to choose in set

For example, we can't use 8, since zero is not in the set and there is no positive number in the set

The solution is, as above: make a list of the combinations from set **NB**, above.

Describe your changes (optional) 200