Skip to content

pitzzahh/pin-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pin-generator

A simple project that generates a pin.

GitHub Issues Forks Stars License


How to use

import com.github.pitzzahh.pinGenerator.Pin;
import com.github.pitzzahh.pinGenerator.PinGenerator;
import io.github.pitzzahh.util.utilities.Print.println;

public class Main {
    public static void main(String[] args) {
        // generates a random 10 numbers as pin
        Pin numbersPin = PinGenerator.generatePin(PinGenerator.NUMBERS, 10);
        println(numbersPin);
        // generates a random 10 letters as pin
        Pin lettersPin = PinGenerator.generatePin(PinGenerator.LETTERS, 10);
        println(lettersPin);
        // generates a random 10 mixed letters and numbers as pin
        Pin mixedPin = PinGenerator.generatePin(PinGenerator.MIXED_NUMBERS_AND_LETTERS, 10);
        println(mixedPin);
    }
}

Add Maven Dependency

maven-central

If you use Maven, add the following configuration to your project's pom.xml

Be sure to replace the VERSION key below with the one of the versions shown above

<dependencies>

    <!-- other dependencies are there -->
    <dependency>
        <groupId>io.github.pitzzahh</groupId>
        <artifactId>pin-generator</artifactId>
        <version>VERSION</version>
    </dependency>
    <!-- other dependencies are there -->

</dependencies>