Skip to content

Create random positions from the first position ranking

License

Notifications You must be signed in to change notification settings

omerh/random-ranker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

random-ranker

Get random ranking when choosing the rank of the first position. Based on cobra

Parameters are:

  1. --p1 the rank of the first position
  2. --count the amount of positions to rank

Build

In order to build this

git clone https://github.com/omerh/random-ranker.git
cd ./random-ranker
go build -ldflags "-s -w"

Run

./random-ranker get random --p1 1000 --count 5

It will print out the following:

2020/07/29 16:07:11 Setting ranking for 5 positions with P1 starting rank of 1000
P_1 is:  1000
P_2 is:  965
P_3 is:  919
P_4 is:  887
P_5 is:  854

Contributing

Fork, implement, add tests, pull request, get my everlasting thanks and a respectable place here :).

Copyright

Copyright (c) 2019 Omer Haim, @omerhaim. See LICENSE for further details.

About

Create random positions from the first position ranking

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages