# Random table

## Probability table

You will get random number by Chainlink's VRF. Then your minimum weight and maximum weight for NFT will be set as below.

<table><thead><tr><th width="150" align="right">Probability</th><th width="214.61045130641332" align="right">Minimum weight</th><th align="right">Maximum weight</th></tr></thead><tbody><tr><td align="right">0.01%</td><td align="right">500</td><td align="right">1000</td></tr><tr><td align="right">0.09%</td><td align="right">50</td><td align="right">100</td></tr><tr><td align="right">4.9%</td><td align="right">1</td><td align="right">2</td></tr><tr><td align="right">20%</td><td align="right">0.2</td><td align="right">0.4</td></tr><tr><td align="right">75%</td><td align="right">0.05</td><td align="right">0.1</td></tr></tbody></table>

## Weight Formula

When your minimum weight and maximum weight is set, your exact weight will be set as below.

$$
weight = \min(maxWeight, minWeight + (randomNumber  \bmod minWeight))
$$

​

ex) You requested to amplify a NFT. By Chainlink's VRF response, random number of 57896044618658097711785492504343953926634992332820282019728792003956564819968 is given. Then, the probability will be (115792089237316195423570985008687907853269984665640564039457584007913129639935 - 57896044618658097711785492504343953926634992332820282019728792003956564819968 )/115792089237316195423570985008687907853269984665640564039457584007913129639935 = 50%, so your minimum weight will be 0.05, maximum weight will be 0.1. Your exact weight will be 50000000000000000 + 57896044618658097711785492504343953926634992332820282019728792003956564819968  % 68596510000000000 = 0.05 + 0.037856546564819968 = 0.087856546564819968.
