Advertisement
coinwalk

for duck

Jan 10th, 2019
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. chance = 33
  2. multiplier = 1.525
  3. base = 0.0000001
  4. nextbet = base
  5. bethigh = false
  6. rollcount = 7
  7.  
  8. function dobet()
  9.  
  10. --Randomizer
  11. r=math.random(2)
  12.  
  13. if r == 1 then
  14. bethigh=true
  15. else
  16. bethigh=false
  17. end
  18.  
  19. --Randomly select High/Low
  20. --bethigh = math.random(0,100)%2 == 0
  21.  
  22. --change seed every 7 bet
  23. if rollcount == 7 then
  24. rollcount = 0
  25. resetseed();
  26. else
  27. rollcount = rollcount + 1
  28. end
  29.  
  30. if (balance) < (nextbet) then
  31. stop();
  32. print(balance)
  33. print("INSUFFICIENT FUNDS!")
  34.  
  35. end
  36.  
  37. --bet progression
  38. if win then
  39. nextbet = base
  40. else
  41. nextbet = previousbet * multiplier
  42. end
  43. end
  44.  
  45. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement