Question: are ivs random in breeding?
Answer: Pokemon caught in the wild usually have random IVs, but those hatched from eggs inherit some IVs from their parents, like genetics. And that's why you must breed to get perfect competitive Pokemon. By selectively breeding across multiple generations, you can get the highest possible stats for your Pokemon.