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] => 4
[1] => 2
[2] => 10
[3] => 3
[4] => 1
[5] => 9
[6] => 5
[7] => 8
[8] => 7
[9] => 6
)

=> Select **four random Small** values: 2, 1, 9, 7

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

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

=> Small numbers are 2, 1, 9, 7

=> Large numbers are 9, 17

The **target** number is: **586**