Split RandomLayout into own file