Lucky Lottery Numbers – Simple WCF Data HOST Service 


This is a simple WCF Data Services (Windows Communication Foundation) HOST service that accepts a user’s name and age then outputs six lucky lottery numbers. The lucky numbers are based on the user’s age, today’s date, a random number generator, and the most frequent powerball number is 20. Note: The maximum possible PowerBall number is 69.

You can run this in Visual Studio using the WCF Test Client or consume it however you like (ex: create a console application, web, cloud, etc.)

Notes: This was a very early demo project that I completed in only like an hour just to put a demo out. I recently completed a WCF course and will be publishing more/better WCF service projects soon. This demo project does not have a console application client, you need to use the WCF Test Client to consume it.

Code

You can view and download the code repo in GitHub here.

 

I am a seasoned certified technologist with over 15 years of experience translating complex business needs into elegant IT solutions across industries, including payments, electric utilities, healthcare, finance, virtual reality, and the broader internet ecosystem. My project work spans the full lifecycle—from strategic business analysis and architectural design to hands-on development, implementation, and testing—bringing both precision and creativity to every phase.

Based in Indiana, my husband and I share our home with a few spoiled fur babies and a lot of coffee. Curious about what I’ve been building lately?

📂 Portfolio: https://portfolio.katiegirl.net 💻 GitHub: https://github.com/kathleenwest