NYC_George
Well-Known Member
I know Pacal is a dead language, but it will run in Windows 11. I really only write golf related programs, and I don't write those anymore. I though I might help out a friend pairing up some scramble teams. I know the program I wrote does the calculating who's playing with who in about 5 seconds. Jimmy a friend who does it now takes about 30 minutes to figure it out. If I wanted to Randomize one of the positions for any reason in Pascal I would use the below similar code.Talking dead languages, Pascal would also be in that category. But it's a very useful language. My first job as a software engineer (pre graduation) was at DEC supporting some internal apps in VAX BASIC and writing more (and extending existing ones) using VAX Pascal. oth were very modern versions of those languages at the time.
I kind of went down the Pascal path a while though I never learned Modula-2 and Modula-3. I did do some Oberon, which was a next generation Niklaus Wirth language from the 90s from the Swiss ETH. I even got published reviewing the Oberon/F software for Mac (and later other platforms IIRC).
But then I learned Objective-C and never looked back. And now Swift. We use Swift and Objective-C daily, and it's amazing how far every day use languages have come in the last 30 years (Objective-C is originally from the 80s but was far ahead of its time in concept which was a fusion of Smalltalk and C). I was never a great C fan but adding Smalltalk on top made it my favorite. (There are of course all manner of interesting languages today in daily use, and a lot more that have been released but never used much outside of labs)
for i:=1 to max_no do begin\par
repeat j:=succ(random(max_value));until not(check(j));\par
inc(cl);\par
a[cl]:=j;\par
writeln(j);\par
end;\par
Swal