Giter Site home page Giter Site logo

youcanhaveanumberbetween's Introduction

YouCanHaveANumberBetween

A simple program that takes 2-5 arguments and generates a text file output

https://discord.com/channels/283467363729408000/586931790208434203/1215647840886587432

Notes

This program uses invariant culture for converting Doubles to Strings, and Strings to Doubles. (This means . will be used as the decimal point.)

Usage

YouCanHaveANumberBetween <min:Int or Double> <max:Int or Double> [dateformat:String] [usedouble:Boolean] [seed:Int]

dateformat Format

{0} = Day (DD)
{1} = Month (MM)
{2} = Year (YYYY)
{3} = Hour {HH}
{4} = Minute {MM}
{5} = Second {SS}

Default is "{0}-{1}-{2}-{3}-{4}-{5}"

usedouble

Is case-insensitive.

Examples

Simple Example

Command Line Instructions

C:\Program>YouCanHaveANumberBetween 1 100

Text File Output

DD-MM-YYYY-HH-MM-SS.txt
Generated a random integer value between 1 and 100
Returned 2

Rename Text File

Command Line Instructions

C:\Program>YouCanHaveANumberBetween 1 100 "output"

Text File Output

output.txt
Generated a random integer value between 1 and 100
Returned 43

Custom Date Format

Command Line Instructions

C:\Program>YouCanHaveANumberBetween 1 100 "number-of-{2}"

Text File Output

number-of-YYYY.txt
Generated a random integer value between 1 and 100
Returned 69

Seeing Double

Command Line Instructions

C:\Program>YouCanHaveANumberBetween 1 100 "{0}-{1}-{2}-{3}-{4}-{5}" true

Text File Output

DD-MM-YYYY-HH-MM-SS.txt
Generated a random decimal value between 1 and 100
Returned 69.93679084022814
nice

Double Input

Command Line Instructions

C:\Program>YouCanHaveANumberBetween 1.5 2.5 "{0}-{1}-{2}-{3}-{4}-{5}" true

Text File Output

DD-MM-YYYY-HH-MM-SS.txt
Generated a random decimal value between 1.5 and 2.5
Returned 1.6009828722714252

Seeded Output

Command Line Instructions

C:\Program>YouCanHaveANumberBetween 1 100 "{0}-{1}-{2}-{3}-{4}-{5}" true 5174123

Text File Output

DD-MM-YYYY-HH-MM-SS.txt
Generated a random decimal value between 1 and 100
Returned 84.52262926451985

youcanhaveanumberbetween's People

Contributors

kaangaming avatar

Watchers

 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.