Use the RNG in spatiotemporal_cubes

Resolved #1281