random_score function - Added the index name and shard id to the randomization, and improved the PRNG itself

Closes #3559