(fixes #3389, BP from #2491) added static keyword to opToolkit::getRandom()