in reply to How much random is rand()?

It's your grep /$rand/ ... Try /^$rand$/, or $_ eq $rand :)