Topic: Open random PDF-file
Date: 4/2/2005 05:26 AM
The listed script seems quite OK (draws randomly 1.pdf to 4.pdf). However, the same file could show up several times:
var c = this.getField("Random");
var e = Math.random()
c.value = Math.floor(e * 4) +1
I think i need an array containing all 'used' numbers, and a statement that will check any new number with the array. I just don't get it right, and sure would appreciate any piece of advice.