Where can I find a list generator to create a raffle list?
I need a list generator software that will automatically update the amount of tickets each customer has purchased in my raffle and make a list of all numbers. Example: John purchases 3 tickets and Mike purchases 5 tickets. The raffle list now looks like: 1. John 2. John 3. John 4. Mike 5. Mike 6. Mike 7. Mike 8. Mike I want to enter the quantity of tickets sold and then the list updates the numbers like above for me. Does this software exist? If so, where is it?
Public Comments
- You probably could do this in Microsoft Excel. (That's if you know how to use it.)
- Find a Unix, Linux machine or a Mac and use the following script: !# /bin/bash FILENAME="list" case $# in 1) PURCHASER=$1 TICKETS=1 ;; 2) PURCHASE=$1 TICKETS=$2 ;; *) echo "usage $0 purchaser [number-of-tickets]" ;; esac NUMBER=`wc -l ${FILENAME}` COUNT=1 while [ ${COUNT} -le ${TICKETS} ] do let "NUMBER = ${NUMBER} + 1" let "COUNT = ${COUNT} + 1" echo "${NUMBER}. ${PURCHASER}" >> ${FILENAME} done
Powered by Yahoo! Answers