Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dimi777
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
dimi777
4y ago
Hi, I’m the guy behind this code. First we roll the type of the gem: 1-star, 2-star or a ?/5-star and then if the rolled gem is ?/5-star, we determine the amount of stars that it will have using the probability array at the bottom