I couldn't find a lottery picker on this site, so here is some code.
hope someone finds it useful
Rem sets up the arrays
dim lottery(45)
dim picknumber(6)
rem sets it for randomize
randomize timer()
rem fill the array with numbers 1 to 45
for filler=1 to 45
lottery(filler)=filler
NEXT filler
rem pick a random number six times
for i=1 to 6
random=rnd(44)+1
repeat
picknumber(i)=lottery(random)
rem makes the current lottery(random)=0 so it can be checked.
lottery(random)=0
rem checks to make sure a number has not already been picked
until picknumber(i)<>0
NEXT i
rem prints the results
for i=1 to 6
print picknumber(i)
NEXT
wait key
DBPro is the new Amos (I hope)