Simple way of creating a 2D array with random numbers (Python),[[random.random() for i in range(N)] for j in range(N)]