Prize Wheel like candy crush?

Hi, i would like to know how to implement a prize wheel which resets every 24 hours (The free spin, or else you have to pay with ingame currency) with probabilities and stuff, like 50% get 20 coins 7% get 1000 coins 3$ get 2000 coins and 40% get 70 coins, something like that, it’s just an example, would anybody know how to do this? In a 2D manner by the way
Something like this:

How I would do it is make a script that do the math behind a chance just simple Random.value on button press. This gives value between 0 and 1. Then add some if statements like so:

if(random <= 0.2){
//20% chance
} else if(random >= 0.21 && random <= 0.50){
//30% chance
}//and so on

Then I would add animations for each result and play one that correspond to the result generated. If You have two fields of the same You can have two animations and use Random.value to just pick one of them.

For a timer, you’ll need to track the last time they did a spin. I would use an online service to get a server time so there is no possible chance for cheating. Then, you have to run some sort of timer in game so that you can unlock it when the time comes around (in case they log in again at hour 23, then you want to display a reset time of 1 hour remaining and open it when it’s done).

When a person spins the wheel, you log a datetime of when they spun. Then when they log back in, you have to get a new server time and calculate if 24 hours has past and if you need to display a timer or unlock the wheel again.