Chuyển đến nội dung
loading
Product Img Casino Product Img Thể thao

Chắc Chắn Công Bằng

Tổng quanThực hiệnChuyển đổiSự Kiện Trò ChơiHạt Giống Máy Chủ Không Bảo MậtTính

Bytes to Floats

The output of the Random Number Generator (byteGenerator) function is a hexadecimal 32-byte hash. As explained under the cursor implementation, we use 4 bytes of data to generate a single game result. Each set of 4 bytes are used to generate floats between 0 and 1 (4 bytes are used instead of one to ensure a higher level of precision when generating the float.) It is with these generated floats that we derive the formal output of the provable fair algorithm before it is translated into game events.

      // Convert the hash output from the rng byteGenerator to floats
function generateFloats ({ serverSeed, clientSeed, nonce, cursor, count }) {
  // Random number generator function
  const rng = byteGenerator({ serverSeed, clientSeed, nonce, cursor });
  // Declare bytes as empty array
  const bytes = [];

  // Populate bytes array with sets of 4 from RNG output
  while (bytes.length < count * 4) {
    bytes.push(rng.next().value);
  }

  // Return bytes as floats using lodash reduce function
  return _.chunk(bytes, 4).map(bytesChunk =>
    bytesChunk.reduce((result, value, i) => {
      const divider = 256 ** (i + 1);
      const partialResult = value / divider;
      return result + partialResult;
    }, 0)
  );
};
    

Floats to Game Events

Where the process of generating random outputs is universal for all our games, it's at this point in the game outcome generation where a unique procedure is implemented to determine the translation from floats to game events.

The randomly float generated is multiplied by the possible remaining outcomes of the particular game being played. For example: In a game that uses a 52 card deck, this would simply be done by multiplying the float by 52. The result of this equation is then translated into a corresponding game event. For games where multiple game events are required, this process continues through each corresponding 4 bytes in the result chain that was generated using the described byteGenerator function.

Shuffle of Game Events

For games such as Keno, Mines, Pump and Video Poker, where outcomes cannot be duplicated, we then utilise the Fisher-Yates shuffle algorithm. This procedure influences the conversion process from floats to game events because each time a game event is translated, the amount of possible remaining game event possibilities has been reduced for any remaining steps in the result chain.

As an example, in video poker, there is at first 52 cards available in the complete deck, and therefore the first game event is translated by multiplying the float by 52. Once this card has been dealt, there is only 51 remaining cards in the deck, and therefore the second card translation is done by multiplying the second float generated by 51. This continues in the same fashion until all the game events required have been generated.

With regards to Mines, Pump and Keno, this is simply a matter of implementing the same process as explained with video poker but changing that to tiles or locations on the board or grid, ensuring that each game event generated, hasn’t already been done so beforehand in the chain of results.

Casino

  • Trò chơi Casino
  • Slots
  • Casino trực tiếp
  • Roulette
  • Blackjack
  • Poker
  • Nhà cung cấp
  • Khuyến mãi & Cuộc thi
  • Stake Engine

Thể thao

  • Thể Thao
  • Thể thao trực tiếp
  • Bóng đá
  • Bóng rổ
  • Quần vợt
  • Thể thao điện tử
  • Tiền thưởng cá cược
  • Cách Đặt Cược Thể Thao
  • Luật đua

Hỗ trợ

  • Trung Tâm Hỗ Trợ
  • Công bằng
  • Đường dây trợ giúp cờ bạc
  • Tự Loại Trừ
  • Yêu cầu thực thi pháp luật

Về Chúng Tôi

  • Câu lạc bộ VIP
  • Đối Tác Liên kết
  • Chính Sách Bảo Mật
  • Chính sách AML
  • Điều Khoản Dịch Vụ

Thông tin thanh toán

  • Nạp tiền và rút tiền
  • Hướng dẫn tiền tệ
  • Hướng dẫn về tiền điện tử
  • Tiền điện tử được hỗ trợ
  • Cách sử dụng Kho
  • Đặt cược bao nhiêu

FAQ

  • Hướng dẫn tất tần tật
  • Hướng dẫn chơi Casino trực tuyến
  • Hướng dẫn cá cược thể thao
  • Cách phát trực tiếp thể thao
  • Hướng dẫn VIP của Stake
  • Hướng dẫn về House Edge
  • Blog
  • Diễn đàn
  • Facebook
  • x.com (Twitter)
  • Instagram
  • YouTube
  • Cửa hàng
  • Primedice
© 2025 Stake.com | Đã Đăng Ký Bản Quyền.

Stake được sở hữu và điều hành bởi Medium Rare N.V., số đăng ký: 145353, địa chỉ đăng ký: Seru Loraweg 17 B, Curaçao. Liên hệ với chúng tôi tại support@stake.com. Công ty đại lý thanh toán là Medium Rare Limited với địa chỉ 7-9 Riga Feraiou, LIZANTIA COURT, Office 310, Agioi Omologites, 1087 Nicosia, Cyprus và Số đăng ký: HE 410775

Stake cam kết chơi cờ bạc có trách nhiệm, để biết thêm thông tin hãy truy cập Gamblingtherapy.org

1 BTC = $0.00

Phiếu Cược Trống Bắt đầu đặt cược ngay bây giờ!
Tổng Cược
$0.00
Est. Thanh toán
$0.00
🍪 Chúng tôi sử dụng cookie cho mục đích chức năng và phân tích.