Turning Technologies ExamView User Manual
Page 108

ExamView Test Generator
108
isunique
int isunique(expression arg1, expression arg2, ...)
Compares the arguments to see if there are any duplicates. If there are duplicate
arguments, the function will return FALSE (0), otherwise it returns TRUE (1). All of the
arguments must be of the same type (string or numeric). This function is useful as a
"condition" in evaluating multiple choice answer choices.
EXAMPLE
(condition) isunique(answerA, answerB, answerC,
answerD)
lcd
int lcd(int x, int y)
Returns the least common denominator of the arguments, x and y.
list
list(expression arg1, expression arg2, ...)
Use this function as a container to hold a group of similar expressions. The expressions
must all be of the same type--either numeric or string. If you create a list of strings, you
must make sure that no string element contains a comma, since the comma is used to
delimit the list. A variable defined as a "list" can be used as an argument for the "choose"
function.
EXAMPLE
fruitList = list("apple", "pear", "peach",
"tangerine")
whichFruit = rand(4)
fruit = choose(whichFruit, fruitList)
weightList = list(110, 142, 153, 180, 212)
whichWeight = rand(5)
weight = choose(whichWeight, weightList)
prime
int prime(int x, int y)
Returns a pseudo-random prime number in the range x to y, inclusive. NOTE: Values
must be in the range 2 to 1,000.
turningtechnologies.com/user-guides