Fixed the function to get random resources for a solution.

You need to update the file "settings.py" with the new lines from
"settings.example.py".