public class RandomProcessor
- extends AIMLProcessor
This improved version (since 4.1.5) employs the notion that to achieve
the kind of randomness expected by users and AIML authors, the following
random element should have its own "space".
This means that, for example, if
li children, and
li children, the probability that any given
A will be chosen when
A is activated should consistently be 1:5,
and the probability that any given
B will be chosen
B is chosen should consistently be 1:7. Essentially, each
must have its own unique series of random numbers.
A "unique space" requirement exists as well on a per-user basis: each
user should have an equivalent experience of randomness for each
element, independent of any other users.
The individual bot also has a uniqueness requirement, multiplying the previous two.
In effect, if there are
n users, and
random elements, there are (potentially)
m * n * n independent random
- Noel Bush, Jon Baer, Thomas Ringate, Pedro Colla, Jay Myers
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final java.lang.String label
- See Also:
- Constant Field Values
public java.lang.String process(int level,
- Specified by:
process in class