Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

How to make a seed?

Help
iRiku87
2009-07-31
2013-04-25
  • iRiku87
    iRiku87
    2009-07-31

    Hi.

    First I will like to congrats the developers for this great library, it's being very usefull for a project.

    I have a doubt:
    How can a start a seed? I mean, in CLIPS i do it like "(seed 1234)", but how can I do it in PyClips?

    Thanks

     
    • Hi,

      since "seed" is a function in CLIPS, you can call it using PyCLIPS Eval() function: in your example, just do something like this:

      >>> clips.Eval("(seed 1234)")
      >>>

      Please note all the parentheses. To directly issue CLIPS commands, no matter whether they are constructs or functions, you can use the clips.SendCommand() function.

      HTH,

      F.

       
    • iRiku87
      iRiku87
      2009-08-02

      Thank you very much, that was what i need.