Skip to content

get_new_name_alpha

Tushar Semwal edited this page Oct 15, 2017 · 1 revision

Syntax:

get_new_name_alpha(Agent_name)  % The predicate provides a new alphabetic name that can be used to christen an agent. %

Agent _name: <atom - >

Description:

This predicate returns the 6-character random alphabetic name to be used for an agent.

Example:

?-get_new_name_alpha(New_Name).

The output is:

?- New_Name = wqcfsd.
Clone this wiki locally