Giter Site home page Giter Site logo

sportloto's Introduction

"Russian lotto" - is a complete f**k!

Russizn lotto

About

For a long time my wife and I bought tickets in the hope of winning a lotto and winning an apartment. But something I no longer like the trend, when I spend money, and in return, except for hope, I get nothing. I decided to calculate how many years we can win an apartment, given the probability, if we buy two tickets every weekend. The result on the face, even for 5,000 years, very rarely has the opportunity to win at least the second round (where the prize is at least a little serious amount - 2-5 of my monthly earnings).

The principle of operation is as follows:

  • taking into account the rules of the game random tickets are generated;
  • then in order get the "kegs" with numbers;
  • and depending on the sequence number on which all numbers were crossed out - it is determined whether you won any tour or not. From here, the probability is calculated.

The application "assembled on the knee", only for demonstration:

app

sportloto's People

Contributors

lpestl avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.