FunctionScore: RandomScoreFunction now accepts long, as well a strings.

closes #8267
I was trying to satisfy the possibility for a session id (say alphanum + dashes).