Please pick up the pattern according to your variant:
1 "1234-5678-1234"
2 "1234-ABCD-1234"
3 "ASDF-1234-ASDF"
4 "AS12-1234-AS11"
5 "AS-1234567-ABC"
6 "12-1234567-ABC"
7 "ABC-1234567-ABC"
8 "QWE-123-RTY-987"
9 "123-ABC-RTY-987"
10 "123-ABC-987-ABC"
11 "ABC-ABC-ABC-123"
12 "ABCDEF-123456-98"
13 "ABCDEF-123456-1234"
14 "123456-1234-ABCD"
15 "123456-ZXCE-ABCD"
16 "ZXCE-ABCD-12345-12345"
17 "1XC1-A11D-1CDVB-123"
18 "AA21-ACBD-CD-VB-123AB"
19 "11-AD-1-CDVB-123-AB"
20 "11-1CDVB-12345-ABCD11"
Your task is:
-
change the constant
VARIANTin the first line ofhomework.rbfile with your variant number; -
change the
generatemethod inhomework.rbfile, so it will return a random number according to your variant pattern. Before you commit the solution, make sure the tests are passed.
Slides for this lecture: http://vova.github.io/course101/