Giter Site home page Giter Site logo

rollgenerator's Introduction

RollGenerator

Made to generate roll data based on hashing algo from certain sites.

  • To Install
git clone https://github.com/gngenius02/RollGenerator.git && cd ./RollGenerator

npm install

npm start

A note, the app as it is currently will create an output.json file with a set number of randomly genenrated seeds and rolls. must have NodeJS isntalled.

Examples

  • Generate with exisiting variables
const { DuckDiceRollGenerator: Roll } = require('./src/RollGenerator');


const Options = {
	server: '0b5fd1d1172914b1283af7642627ab2b02199bca1a8a015591d131092c4e0010',
	client: '0b5fd1d117',
	nonce: 2701236,
	numberOfRolls: 10000
};

const getRolls = new Roll(Options);

console.log(getRolls);
  • Generate new seed pairs
const { DuckDiceRollGenerator: Roll } = require('./src/RollGenerator');


const getRolls = new Roll();

console.log(getRolls);
  • Generating new seeds in a loop.
    • this would generate 10 seed pairs with 10,000 rolls for each pair.
const { DuckDiceRollGenerator: Roll } = require('./src/RollGenerator');

const rollsArray = new Array();

while(rollsArray.push(new Roll()) < 10);

console.log(rollsArray)

- An example of the output:
DuckDiceRollGenerator {
server: 'b4012cf2735f08ae7c760e561ee0ccf316d88c48cc875151ed986036d1ce18c6',
client: 'XBnvdleEFzaXjr8zhjYRiiCux5OtjT',
nonce: 9999,
numberOfRolls: 10000,
seedhash: '6171cbde83a019c750cbdb9b08b8cdc6be73d3e468f07bb6320f5a893a510436',
rollArray: [
'{"nonce":1,"roll":7835}','{"nonce":2,"roll":4755}',
'{"nonce":3,"roll":6905}','{"nonce":4,"roll":1864}',
'{"nonce":5,"roll":4936}','{"nonce":6,"roll":1218}',
'{"nonce":7,"roll":1539}','{"nonce":8,"roll":8831}',
'{"nonce":9,"roll":4134}','{"nonce":10,"roll":6730}' . . .
finished writing to file.
Generated rolls and wrote to file in: 1.003s    //this is for 10 seeds x 10000 rolls each

Future plans

Add the algos to create the seed pairs and rolls for more dice sites.

Like my work?

BTC: 3LHigQvHwcb5uH8NeorKyiYEqDvLumaEsV

rollgenerator's People

Contributors

gngenius02 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

userbox020

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.