$\blacktriangleright$    To enter a condition

  1. Start a new paragraph after the definition for which you want to state conditions.

  2. Type Condition: and then, with the insertion point in mathematics, type the condition the variable must meet.

    The word Condition is a keyword, which triggers certain effects when the Exam Builder generates the exam. Chapter 3EBsource.tex explains more about keywords.

itbpF42.875pt18.125pt4ptex3.wmfCondition: (ab≠0)

This condition specifies that neither a nor b can equal 0. The Exam Builder will reject a randomly generated value of 0 for either variable.

itbpF42.875pt18.125pt4ptex3.wmf

This simple example shows how you can combine definitions, random number functions, and conditions to generate suitable variable values for your questions and answers.

a : = $\func$rand(10)

b : = $\func$rand(10)

c : = a + b

Condition: (ab)

This condition specifies that a and b cannot be equal. The Exam Builder will reject a randomly generated value for b if it is the same as the value already generated for a.

itbpF43.125pt18.5pt4ptex3.wmfHere is a condition that is very hard to satisfy:

a : = $\func$rand(1000000)

b : = $\func$rand(1000000)

Condition: (a = b)

This condition will not be satisfied very often because what are the chances that two numbers selected at random from the specified range will be equal?