This is a script that draws raffle winners with modified probabilities, depending on the number of tickets that a user purchaed.
In the "uniform case", where all tickets are equivalent, the standard deviation around the expected number of tickets
This script introduces a mapping (
The effect of
For simulating the general stdev.ipynb
.
The script will read the data provided in data.csv
(you will have to keep the structure of data as in the provided example). The ouput of the script will be an array of objects with the following structure:
{
wallet: string // Wallet address of the user
tickets: number // Number of tickets purchased
rewards: number // Number of winning tickets
delta: number // The difference between actual winning tickets and the expected number
}
A sensible choice for mapping parameters is