Files
004_comission/ttng1234/quotation/question.md
louiscklaw 49e275d85d update,
2025-01-31 20:12:48 +08:00

2.9 KiB

ASSIGNMENT 2

Q1. 25%, Mark Six Simulation

Mark Six introduction The Mark Six Lottery is a 6 out of 49 lotto game which is conducted by HKJC Lotteries Limited, a subsidiary of The Hong Kong Jockey Club.

After each draw if your entry satisfies some situations, the prize will be paid. Mark Six Prize Qualification

https://bet.hkjc.com/marksix/userinfo.aspx?lang=en&file=prize_entitlement.asp

1st Prize Pick all the 6 Drawn Numbers Prize is determined by the total number of winning unit investments in the First Division Prize. The minimum First Division Prize Fund is set at HK$8 million
2nd Prize Pick 5 Drawn Numbers plus the Extra Number Prize is determined by the total number of winning unit investments in the Second Division Prize
3rd Prize Pick 5 Drawn Numbers Prize is determined by the total number of winning unit investments in the Third Division Prize
4th Prize Pick 4 Drawn Numbers plus the Extra Number A fixed prize of $9,600
5th Prize Pick 4 Drawn Numbers A fixed prize of $640
6th Prize Pick 3 Drawn Numbers plus the Extra Number A fixed prize of $320
7th Prize Pick 3 Drawn Numbers A fixed prize of $40

For simplify the question, the prizes are assumed as following:

Task to do a. Write a function for inputting the list of your entry numbers, and the tuple with list of the draw numbers and the special number, then outputting the unit prize.

Example:

Numbers of your entry: [14, 21, 25, 34, 37, 41]
Numbers of draw: ([21, 25, 34, 37, 41, 46], 14)
Unit prize of your entry: 885990 (2nd prize)

Please check in the function: ensure the input formats are as same as the example.

  1. np.random.choice
  2. np.arange
  3. np.random.seed(21800000)