Animating a 10x5 grid of cubes

I have a 10x5 grid of cubes that I want to randomly animate up and down before they all ‘settle’ into their final resting position. Basically they are supposed to emerge from the floor, move up and down some and then settle into the floor again. Just looking for suggestions on the best way to accomplish this.

Isn’t there some ‘noise’ algorithms/techniques usually used for this type of animation?