Use the RNG to resolve #1281  in spatiotemporal_cubes

Resolved #1281