SHARE
TWEET

Untitled

a guest Nov 9th, 2019 65 in 2 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function getFloat() {
  2.         $profit = Profit::calc(); // get all site profit
  3.         $lastZero = Crash::where('multiplier', 1)->orderBy('id', 'desc')->first();
  4.         if(!is_null($lastZero) && ($lastZero->id >= ($this->game->id+mt_rand(3, 10)))) return 1;
  5.  
  6.         $list = [];
  7.         for($i = 0; $i < 50; $i++) $list[] = 1;
  8.         for($i = 0; $i < 25; $i++) $list[] = 2;
  9.         for($i = 0; $i < 10; $i++) $list[] = 3;
  10.         for($i = 0; $i < 9; $i++) $list[] = 4;
  11.         for($i = 0; $i < 3; $i++) $list[] = 5;
  12.         for($i = 0; $i < 2; $i++) $list[] = 10;
  13.         for($i = 0; $i < 1; $i++) $list[] = 100;
  14.         shuffle($list);
  15.        
  16.         if($this->game->multiplier) return $this->game->multiplier;
  17.         $m = $list[mt_rand(0, count($list)-1)];
  18.         if($m > 1) $m = mt_rand(1, $m);
  19.         if($profit['need'] < $profit['now'] && mt_rand(1, 10) > 6 || $profit['now'] < 0 && mt_rand(1, 10) > 6) return '1.'.mt_rand(0,4).mt_rand(0,9);
  20.         if($m == 1 && $profit['need'] < $profit['now'] || $profit['now'] < 0) return $list[0].'.0'.mt_rand(0,9);
  21.         $num = round($m.'.'.mt_rand(0,9).mt_rand(1,9), 2);
  22.         return $num;
  23.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top