how to use random.choice with transform.resize?
You need to make two small changes to make your script run - add import random and the call to random.choice you have the function brackets and array brackets back to front.

import bpy
import random
...
...
...
scale = random.choice([0,0.33,0.66])
bpy.ops.transform.resize(value=(1, 1, 1*scale))


Also I think the end result may not be what you are after, I expect you want to move the random size into the column creation to make each column a different size.