Take a Random unique path in gProlog

Nagaraj Hegde <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
Hi all,

I am using gprolog in random generation of options for a command line.

If i say a option like -a to a command can take 7 type of arguments,

i would write,

start -> [cmd], option.

option -> [-a], xyz.
option -> [-a], abc.
.
.
.
option -> [-a], pqs

I want these option to appear in random way, without any repitition in the
generated output like cmd -a xyz as one generaition and cmd -a xyz -a pqs as
another generation etc...

Can you please help me to get this pattern?

-- 
Nagaraj P Hegde

_______________________________________________
Users-prolog mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/users-prolog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.