Gambling is bad, this is just for fun :)
All you have to do is use
=RANDBETWEEN(1,9999) in all the winning numbers cells
and then format the cells to custom -> type = 0000
I have uploaded the excel file and you can try out 'live' using this link:
https://skydrive.live.com/redir?resid=F0F21B96ADB9B690!109
Sample looks like this:
Singapore 4D lucky number generator |
:
Good luck!