IDs and Block IDs

Do IDs, User Data IDs and Block IDs have a specific structure, or are the numbers and letters that appear in them random?

What is the behavior like? What is the scenario for them to change?

They are UUIDs: Universally unique identifier - Wikipedia