AnsweredAssumed Answered

Rand

Question asked by p.soares@eusc.europa.eu on Nov 30, 2016
Latest reply on Dec 5, 2016 by raze

Hi,

 

CityEngine 2015

is it possible to use 'rand' to randomize only two values, such as:

 

attr lenght = rand (6 - 12)

 

the use of "," will give me all the numbers between those two. That is not what I want.

 

I test this and it worked for a Block (Parameters = No subdivision and Uneven) and I tried again for another block with the same parameters and did not work.

 

is there an alternative?

 

cheers

Pedro

Outcomes