MooseRandom::seed(), randl(), and rand() expect 32-bit inputs, so make sure they get it.
sorted_indices is declared as a vector<size_t> so catch its entries as size_t.