users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Take a Random unique path in gProlog


From: Nagaraj Hegde
Subject: Take a Random unique path in gProlog
Date: Tue, 2 Nov 2010 10:28:15 +0530

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]