Less Random Please

Discussion created by kjzhang on Jan 16, 2013
Latest reply on Jan 31, 2013 by MBuehler-esristaff
Hi everyone, looking for some help on inserting premodeled objs into my buildings.

I have my floors split into facades and then into panels. I am looking to insert 4 different premodeled detailed panels into these panels. In my assets folder i have panel1.obj panel2.obj panel3.obj and panel4.obj

I have used the following code:

panelasset = "panel" + ceil(rand(0,4))+ ".obj" 
panel -->

The problem is the panels are randomized every time for every panel on every building, resulting in crazy looking buildings will all four panel types.
Is there a way to randomize so that I have only 1 TYPE of panel on each building? While WHICH type is random.

Thank you