I give pair quizzes in some classes. The students get part of the time individually so that they can still use the quiz as a formative assessment. Then they get some time in pairs. I say this is fine because the pairs are chosen randomly or the pairs are not repeated, and the quizzes are easy enough for individuals to do.
I usually use the non-repeated because randomly choosing the groups takes too much class time. There are Google Sheet Templates and apps like Names in a Hat that would do a good job, but they require just the names of the people who are there that day. An absent student needs to be removed the day of selection, and then re-added before the next day of selection.
TeamMaker avoids this. It has a toggle by names. Toggle the student off if they are absent and run the selection.
TeamMaker also defaults to making groups slightly larger if the number of people is not divisible by the number of groups which is the way I prefer it to work. The app is free if you can tolerate x-ing out ads every few picks, or $0.99 via in-app purchase if you prefer an ad-free version.