Coder Social home page Coder Social logo

gokulramghv / pyrandtoys Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thenithinbalaji/pyrandtoys

0.0 0.0 0.0 31 KB

A python module for generating the result of probability-based toys. Installable on any system with pip command.

Home Page: https://pypi.org/project/pyrandtoys/

License: MIT License

Python 100.00%

pyrandtoys's Introduction

Rand Toys

pyrandtoys is a python module containing probability-based toys' functions.
It works offline and is compatible with both Python 2 and 3.

๐Ÿ”ฎ Installation

pip install pyrandtoys

๐Ÿ–ฅ๏ธ Usage

import pyrandtoys
print(pyrandtoys.coin()) #there are many other toys in pyrandtoys similar to coin, check below

List of functions available in pyrandtoys module

๐ŸŽฒ Dice

Optional: Number of Dice <int>
Default: Number of Dice = 1
Return Type: <tuple>

dice(number_of_dice)

๐Ÿ† Coin

Optional: Number of Coins <int>
Default: Number of Coins = 1
Return Type: <tuple>

coin(number_of_coins)

๐Ÿงฎ Similar Toys

Optional: Number of Items <int>
Default: Number of Items = 1
Return Type: <tuple>

dreidel(number_of_dreis)
cat(number_of_cats)
switch(number_of_switches)

โš–๏ธ Spinner

Required: Lower & Upper Limits <int>
Default: Lower Limit = 0
Return Type: <tuple>

spinner(lowerLimit, upperLimit) 

๐Ÿฅ‚ Toy Combinations

Return Type: <tuple>
Default: Number of Toys = 0

If you want to use a combination of toys then,
Required: List of toys as <list>,<tuple>

combi(("switch", "cat", "dice"))
combi(["dreidel", "coin", "coin", "cat"])

For combination of x random toys,

combi(x)

๐Ÿ“š Project Links

pyrandtoys's People

Contributors

thenithinbalaji avatar gokulramghv avatar dhravya 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.