Domanda di colloquio di TikTok

How to sample from a uniforml probability distribution?