Fixes #1485 SQLite rand() function needs to be random()
Merge pull request #1486 from PaulBender/fix-1485

Fixes #1485 SQLite rand() function needs to be random()