Hi Garry,
The ExpressionEvaluator has a random number function... rand() that
generates a number between 0 and 1, so I guess you could incorporate
that into an expression.

Something like...

startYear + ((endYear-startYear)*rand())

...though the expression syntax would include & or @Value() in FME.

I'm not quite sure which way you'd want to round it off, but either
the Int() or Round() functions would help do that.

Hope this helps

Mark


--- In [email protected], "garry_christoffersen" <[EMAIL PROTECTED]> wrote:
>
> Hi All
> 
> I have groups of features that have a start and finish year attribute
> (with each group having different start and finish years). What i want 
> to do is assign a random year (between the start and finish years) to 
> each feature within the group.
> 
> Now the RandomNumberGenerator transformer just about does the job, but 
> does not allow the use of attributes. I don't want to have to use a 
> different RandomNumberGenerator transformer if i can help it.
> 
> Can anybody provide advice or workarounds?
> 
> Regards Garry
>




For insights into what's up at Safe Software and what's on the development 
horizon, visit Safe's blog at spatial-etl.blogspot.com.

Love FME? Then open your diary to March 6-7, 2008 and write this... "Second 
Worldwide FME User Conference - Must Attend!" See 
http://www.safe.com/company/fmeuc2008/index.php for more details. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/fme/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/fme/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to