TruClient: unable to select random picklist with skipping first item (JS Math functions left out?)

With TruClient it used to be possible to select a random picklist with skipping first item (ordinal) with the following JS code (see http://www.sqaforums.com/attachments/719896-TruClientRandomListbox.pdf).

In the Arguments -> Ordinal box:

var optionindex = Math.floor((object.length – 1) * Math.random())   2;
optionindex;

 

When running this results in an "illegal character" error.

When leaving out the Math functions it works out fine. Could it be that the JavaScipt Math library is not supported anymore?

Appreciate your help.

Kind regards.,
Okke