TikTok interview question

How to sample from a uniforml probability distribution?