You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python3 -c "import random; ask=lambda p,d:int(input(f'{p} [{d}]: ') or d); n=ask('How many questions?',50); b=ask('How many should have All of the above/etc []?',12); s=ask('How many of those should be correct [*]?',6); b=min(b,n); s=min(s,b); nums=[str(random.randint(1,4)) for _ in range(n)]; bracketed=set(random.sample(range(n),b)); starred=set(random.sample(list(bracketed),s)); print(' '.join(num+('[*]' if i in starred else '[]' if i in bracketed else '') for i,num in enumerate(nums)))"
About
psychology revision platform. containerised, cached and easily deployable