local Player = game.Players.LocalPlayer
local Cash = Player.leaderstats.Cash
function onClick()
Cashie = math.random(1,3)
end
script.Parent.MouseButton1Click:connect(onClick)
if Cashie == 1 then
Cash.Value = Cash.Value + 100
end
if Cashie == 2 then
Cash.Value = Cash.Value + 200
end
if Cashie == 3 then
Cash.Value = Cash.Value + 300
end
So, I'm trying to get a script to pick a random amount of cash upon the click of a button (using math.random) So, How would I get the math.random to work when I click a button? Yes, I have attempted this by myself already, but the script wasn't working (there was nothing in Output either).

4 comments
At least show us the script that wasn't working.
If the script is deleted then I can make a fully working one for you.
@minecraftjul YES! That would be great. Just post the script in Answers and I can accept the answer if it helps!
Added an answer with an edited version of the code supplied, enjoy!