Make core::rand work with newsched

Closes #6280