Create an array of the given shape holding random values in [0, 1).
Seed the global random state with seed immediately before generating the
values, inside solve; seeding earlier (e.g. at import time) will not reliably
reproduce the same numbers, since the seed is global, shared state.
Input
shape = (3, 3, 3), seed = 0
solve(...)