Verification #26 · 2026-10-19 · Unique constraints · Easy · about 10 min
Four tags, all different
tag_set is a set of four transaction tags. Each tag is a random value from 1 to 5, and no two tags in a set may be equal. Any such set is allowed, in any order, and every slot should be able to hold every value in the pool.
randomize() always succeeds, but some sets still come out with a repeated tag. Fix tags.sv.
Write and run your answer in the browser. The hidden tests check it, and it’s free.