Port to QRandomGenerator from KRandom::random

KRandom::random() has been deprecated and AFAICS, the PIM CMake settings
disable deprecated API. This causes build failures.
2 jobs for master in 18 minutes and 13 seconds (queued for 1 minute and 45 seconds)