Avoid feeding inexact numbers to random while generating contract-satisfying values.

Also fix a minor doc error.