in reply to Trial and error problems in Perl

You can just generate two numbers randomly, add them and subtract the result from 10.33 . That should give you an exact result for the last number (barring floating point exactness errors).

see rand() in perlfunc