Skip to content

nico-iaco/raffle-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raffle manager

CodeFactor License: MIT HitCount

This project is a utility for ruffle applications.

Feature

  • Number exctractor
  • Raffle folder generator
  • more feature will be added as soon as possible

How to use

Add this into your pom.xml

<dependency>
   <groupId>it.iacovelli</groupId>
   <artifactId>ruffleManager</artifactId>
   <version>1.0-SNAPSHOT</version>
</dependency>

Use number extractor

In your application instantiate a new NumberExtractor with the starting and the ending number of the range, then you can use the getNumber() method to extract a random number. Remember to call the initialize() after you finish to extract numbers if you want retry.

Use folder generator

In your application instantiate a new RuffleFolderGenerator with the starting and the ending number of the range, then you can use the generateRuffleFolder(folderNumber) method with the folder number you want to use.