Finding fractions between 0 and 1