chaitanyakapu

list Random Question.

Discussion created by chaitanyakapu on Apr 17, 2012
Latest reply on Apr 18, 2012 by MBuehler-esristaff
Hi,

I have 6 aircon_type object files.I am setting the aircon obj by randomly selecting
one of them.

Aircon_area -->
    set(   aircon_obj , listRandom( fileSearch( path + aircon_*.obj) ) )

Each time I run the rule, it randomly selects from the 6 aircon_types and places on the roof.

Is there any way that I can select (user_specified number of) aircon_types from the list
and then place them randomly.

For example if the user wants only 2 aircon_types, it should select from those 2 aircon_types
and then randomly place on roof.

Thanks,
Chai.

Outcomes