uuid
gen_random_uuid() makes a random version 4 uuid. In its text form the version is the first digit of the third group, so every v4 id has a 4 there.
task
Table tu with an id uuid defaulting to gen_random_uuid(); insert 3 rows; return the 13th hex digit of each id (the version).