# ADA Lottery

**URL:** <https://forum.cardano.org/t/ada-lottery/19334>\
**Category:** Developers\
**Created:** [7 January 2019 12:13 UTC](https://forum.cardano.org/t/ada-lottery/19334 "2019-01-07T12:13:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cardano\_millionare](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/cardano_millionare/32/7777_2.png) [@cardano\_millionare](https://forum.cardano.org/u/cardano_millionare)\
**Post date:** [7 January 2019 12:13 UTC](https://forum.cardano.org/t/ada-lottery/19334/1 "2019-01-07T12:13:35Z")

</div>

It would be great if someone could write a smart contract where the paticipants could send certain amount of ada to an address and based on a random number generation a winner is picked and the whole of the community collected ada will be transfered to that winner address.

---

<div class="post-metadata">

**Author:** ![HisMajesty](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/hismajesty/32/6843_2.png) [@HisMajesty](https://forum.cardano.org/u/HisMajesty)\
**Post date:** [8 January 2019 12:16 UTC](https://forum.cardano.org/t/ada-lottery/19334/2 "2019-01-08T12:16:48Z")

</div>

This is very easy to do - and is literally the most common example used for Solidity tutorials.

> **[Lottery as a Smart Contract: The Codes – Coinmonks – Medium](https://medium.com/coinmonks/lottery-as-a-smart-contract-the-codes-b38bdd41fdc0)**
>
> This is the final part of the Lottery Smart Contract series that I started 2 weeks ago. You are read part 1 here and part 2 here. In this…

There are very many others.

Pick one. Build it on Ethereum and check it works. Then build it on Cardano KEVM testnet.

---

<div class="post-metadata">

**Author:** ![HisMajesty](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/hismajesty/32/6843_2.png) [@HisMajesty](https://forum.cardano.org/u/HisMajesty)\
**Post date:** [8 January 2019 12:21 UTC](https://forum.cardano.org/t/ada-lottery/19334/3 "2019-01-08T12:21:32Z")

</div>

Perhaps you wanted it written in Plutus? that I am not sure about… maybe look at this: [Naive Lottery Smart Contract Implemented In Plutus](https://forum.cardano.org/t/naive-lottery-smart-contract-implemented-in-plutus/18965/10)
