Yeah, that's what I ended up doing for my testing. I just thought it was
interesting behavior and thought that asking the question might help
bring out an understanding of the behavior of this function when used in
iterated variable definition. My actual use of randomint() in my policy
is for a single variable doing a "coin flip", so to speak, so it's not
an issue for me.

Thanks,
Justin

-----Original Message-----
From: help-cfengine-boun...@cfengine.org
[mailto:help-cfengine-boun...@cfengine.org] On Behalf Of
no-re...@cfengine.com
Sent: Thursday, August 05, 2010 3:29 PM
To: help-cfengine@cfengine.org
Subject: Cfengine Help: Re: RE: Cfengine Help: Re: randomint issue

Forum: Cfengine Help
Subject: Re: RE: Cfengine Help: Re: randomint issue
Author: Seva Gluschenko
Link to topic:
https://cfengine.com/forum/read.php?3,17851,17853#msg-17853

Well, it seems like you can't get an iteration here. Just try several
variables

vars:
    "a" int => randomint("0", "100");
    "b" int => randomint("0", "100");


_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

This electronic communication and any attachments may contain confidential and 
proprietary 
information of DigitalGlobe, Inc. If you are not the intended recipient, or an 
agent or employee 
responsible for delivering this communication to the intended recipient, or if 
you have received 
this communication in error, please do not print, copy, retransmit, disseminate 
or 
otherwise use the information. Please indicate to the sender that you have 
received this 
communication in error, and delete the copy you received. DigitalGlobe reserves 
the 
right to monitor any electronic communication sent or received by its 
employees, agents 
or representatives.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to