loading
open in
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
import random

big = [100,75,50,25]
small = list(range(1,11))*2

nummax = 6
numbig = int(input('big?'))

selected = random.sample(big, numbig) + random.sample(small, nummax - numbig)
target = random.randint(100,999)

print('{:>14d}{:>30s}'.format(target, ', '.join(str(x) for x in selected)))