Let's have this pet.tf file:
resource "random_pet" "my_pet" {
prefix = "Mr"
separator = ". "
length = 1
}
On the output of apply we will get:
random_pet.my_pet: Creation complete after 0s [id=Mr.dragon]
More examples you can find on the Documentation page