someone try to figure this progrm out i tried it but there is noway i could solve it i tried it this is wat i got:
var lotteryticket : array 1 .. 6 of int
var lotterynumbers : int
for i : 1 .. 6
loop
lotterynumbers := Rand.Int (1, 49)
end loop
end for
write a program which generates one ticket for lotto 649. recall that each lotto 649 ticket consists of six different integers between 1 and 49. be carefull! your program must ensure that the ticket does not contain duplicate numbers.
i have other programs to write im really stressed if some one could finish it i would relly appreciate thnx.