TikTok Interview Question

How to sample from a uniforml probability distribution?