Randomizer


SUBMITTED BY: bubby131

DATE: Oct. 24, 2017, 11:47 p.m.

FORMAT: Text only

SIZE: 863 Bytes

HITS: 617

  1. chance = math.random(75.00*100.0, 85.00*100.0)/100.0
  2. multiplier = 1.7
  3. base = 0.00001
  4. nextbet = base
  5. bethigh = false
  6. rollcount = 7
  7. function dobet()
  8. --Randomizer
  9. r=math.random(2)
  10. if r == 1 then
  11. bethigh=true
  12. else
  13. bethigh=false
  14. end
  15. --Randomly select High/Low
  16. --bethigh = math.random(0,100)%2 == 0
  17. --change seed every 7 bet
  18. if rollcount == 7 then
  19. rollcount = 0
  20. resetseed();
  21. else
  22. rollcount = rollcount + 1
  23. end
  24. if (1000) < (nextbet) then
  25. stop();
  26. print(balance)
  27. print("INSUFFICIENT FUNDS-FONDOS INSUFICIENTES")
  28. end
  29. --bet progression
  30. if win then
  31. chance = math.random(75.00*100.0, 85.00*100.0)/100.0
  32. nextbet = math.random(0.00001*100000000,0.00004*100000000)/100000000.0
  33. else
  34. chance = math.random(35.00*100.0, 45.00*100.0)/100.0
  35. nextbet = previousbet * multiplier
  36. end
  37. end
  38. end

comments powered by Disqus