Coder Social home page Coder Social logo

swift-quantis-cli's Introduction

Swift-Quantis-CLI

A simple Swift C wrapper for id Quantique Quantis: Quantum Random Number Generator.

Requirements:

System: Unix, Library: libusb-1.0

Compile providing required flag to Swift Linker: swift build -Xlinker -lusb-1.0

CLI Commands

  -i, --info              Print all cards info
  --roll                  Roll from 1 to 100, like in WoW.
                          Optionally Device Number and Device Type can be passed.
                          Example: roll -t 2 -n 0
  --jackpot               Roll a jackpot, receive result from 0.00 to 100.00.
  --coinflip              Flip a coin, result: 1 or 2.
  --wheel                 Roll a wheel, result from 1.00 to 25.99
  --randomint             Random number, from -min to -max, if no value provided, default: 1 to 10 will be used, -c <amount> amount of numbers to be generated
  --randomdouble          Random double, from -min to -max, if no value provided, default: 1.00 to 10.00 will be used
  --min <min>             From minimal number
  --max <max>             To maximum number
  -t <t>                  Device Type: 1 - PCI-E, 2  - USB
  -n <n>                  Device Number
  -h, --help              Show help information.

Example

--roll -t 2 -n 0
--jackpot
--coinflip -t 1 -n 1
--randomint --min 1 --max 100
--randomint --min -1000 --max 2000 -c 100000

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.