Randomly place p = 3 ones in a 10×10 array of zeros, at p distinct
positions chosen uniformly at random without replacement. Seed the global random
state with 0 first for reproducibility: do it inside solve, immediately before
the random call, since the seed is global, shared state.
Sign in to write and run your own code.
solve(...)