Play the numbers game from the popular British game show **Countdown** at web.

You start with a collection of random numbers, divided into *small* numbers from 1 to 10

and *large* numbers that are 15, 20, 25, and so on until 100.

Pick any combination of six numbers from both *large* and *small* numbers.

The course of the game

1) Generate a random numbers.

**o** Four small numbers

**o** Two large numbers

2) Next generate a random *target* number between 200 and 999.

Then use simple arithmetic operations with your six numbers try to calculate the target number

using each *small* and *large* number no more than once.

You get the highest number of points if you calculate the target number exactly

and fewer points if you can get within 10 of the target number.

For example, if your random numbers were 75, 100, 2, 3, 4, and 1, and your target number was 505,

you might say **2 + 3 =5, 5 × 100 = 500, 4 + 1 = 5, and 5 +500 = 505**.

Or more directly: (2 + 3) × 100 + 4 + 1 = 505.

Start with the *small* numbers to be in the range of 1 to 10

=> Generate the random **Small** numbers:

Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
[4] => 5
[5] => 6
[6] => 7
[7] => 8
[8] => 9
[9] => 10
)

=> Randomize this Small list:

Array
(
[0] => 9
[1] => 2
[2] => 6
[3] => 4
[4] => 3
[5] => 5
[6] => 7
[7] => 8
[8] => 1
[9] => 10
)

=> Select **four random Small** values: 6, 3, 5, 10

Generate the random list of *large* numbers. Starting at 15, incrementing by five, until reach 100

=> Generate the random list of **Large** numbers:

Array
(
[0] => 15
[1] => 20
[2] => 25
[3] => 30
[4] => 35
[5] => 40
[6] => 45
[7] => 50
[8] => 55
[9] => 60
[10] => 65
[11] => 70
[12] => 75
[13] => 80
[14] => 85
[15] => 90
[16] => 95
[17] => 100
)

=> Randomize this Large list:

Array
(
[0] => 15
[1] => 55
[2] => 35
[3] => 65
[4] => 85
[5] => 90
[6] => 30
[7] => 25
[8] => 75
[9] => 100
[10] => 50
[11] => 20
[12] => 60
[13] => 80
[14] => 40
[15] => 70
[16] => 95
[17] => 45
)

=> Select **two random Large** values: 50, 50**Let's start playing a number game**

=> Small numbers are 6, 3, 5, 10

=> Large numbers are 8, 10

The **target** number is: **311**