One kind of lottery problem

Hi,

I am working on one kind of lottery with Flash MX 2004. I get a number as a parameter, and I’d need to make Flash soft that looks like a raffle (lottery), which randomizes the number…

How do you think that it would be the most reasonable way to do?

there should be number running and the “machine” should stop poisnting the number from the database…

should i make a picture in which are all number then roll it… but how to get it to stop in the right place?

any ideas? or examples that you have seen?