#Python, 42 bytes# <!-- language-all: lang-python --> import random lambda n:1>random.random()*n *Edit*: Removed the `time.time()` answer because of the distribution.