Fix autocomplete box.

SelectedItem was starting off as -1 (a non-false value) so the line that
set the className on it failed.
Add Math.random sample for normal distribution