not sure if you can do random but why not create a set of actions with different pattern (grid) and run them on your choice?
here is a 4 tile pattern i did this morning
4 tile
it can be run only on the same size pictures
but you get the ideea don't you?
hth
puk