Added a version of what we need for parallel random streams, the simplest approach.