Im new to the random file thing and Im having a few issues trying to make a simple lotto number generator/analyser. Anyway Im generating the six random numbers and then sticking this info into an array so I can check for duplicates. Naturally this is the easy bit, I fall into problems when I try and enter this info into my file structure. So anyone got some advice on looping and entering random information into a file structure???
I have done it this way to start the project off:
any advice warmy appreciated
I have done it this way to start the project off:
PHP:
FileOpen(1, "numbers.data", OpenMode.Random, OpenAccess.ReadWrite, OpenShare.Shared, Len(udtLotto))
For count = 1 To 10
udtLotto.first = ran()
udtLotto.second = ran()
etc...
FilePut(1, udtLotto, count)
Next count
FileClose(1)