Permutation help needed

Hey guys, I'm new to scripting (architecture student working on comprehensive work) and I need help figuring out how to sucessfully script. I have 25 different objects which I need to permutate in all possible ways (All possible combinations in a 5 vertical level configuration while keeping each objects size, scale and orientation intact) It's a little much for someone who has only done simple offset and rotate box functions. If anyone could help that'd be great.