Fixing language test/random number truncation

Review/merge by @SethTisue xor @frankduncan, plz.