You are going to need to provide way more information as to what you need.
In New York State there are at least 2 lotto’s — each with slightly different rules.
You need to target 1 or more lotto’s.
If you plan to wrtie vb.net code, you need to know VB.Net and how to interact with databases.
Current and prior lotto results would go into a database. Each lotto would have it’s own table.