lamnesia @ Sun Jun 03, 2007 1:47 pm wrote:
oh and also i tried to make an array of procedures 
like
procedure question1
bl bla bla
end question1
procedure question2
bla bla bla
end question2
var randomquestion :array 1..2 of int
var num : int
randomquestion (1) := question1
randomquestion (2) := question2
loop
    num := Rand.Int (1,2)
    put randquestion (num)
end loop
but it gave me an error:
"Assigned"
Try This:	  | Turing: | 
		  | proc p1
put "Procedure 1"
 end p1
 
 proc p2
 put "Procedure 2"
 end p2
 
 proc p3
 put "Procedure 3"
 end p3
 
 
 var p : array 1 .. 3 of procedure blah ()
 
 
 p (1) := p1
 p (2) := p2
 p (3) := p3
 
 
 p (Rand.Int (1, 3))
 
 |