<<
# sample data /#
x[1,1]="aa" x[2,1]="123456"
x[1,2]="bb" x[2,2]="678901"
x[1,3]="cc" x[2,3]="273839"
>>
<html>
<title>Random Character Examples</title>
<body bgcolor=white>
<per>
1. Random Number of 1 to 100: <<random(100)>>
<br><br>
2. Random Number between 5 and 10: <<random(5,10)>>
<br><br>
3. Randomize table rows. Table is:<br><font color=red>
<<DISPLAY NAME=X "[1] [2]<br>" /DISPLAY >></font>
Randomized Table is:<br><font color=red>
<< i=1
j=cols(y)+1
WHILE i <= ROWS(x) DO
x[j,i]=RANDOM(j*1000)
i = i + 1
/WHILE
x=SORTCOL(x,j)
DISPLAY NAME=X
"[1] [2]<br>"
/DISPLAY
>></font>
</html>