Shuffling machine control method, device and equipment and storage medium
By introducing a randomized control algorithm and a real-time feedback mechanism into the shuffling machine, and using entropy sources to generate randomized seeds and motor control parameters, the problem of fixed shuffling patterns is solved, achieving a high degree of randomization and adaptive control of the shuffling process, and improving the shuffling quality.
Patent Information
- Application Number
- CN202511987745.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-26
- Publication Date
- 2026-02-10
AI Technical Summary
The existing automatic card shuffling machines have a fixed shuffling pattern, which results in a strong regularity and insufficient randomness in the mixing of cards, failing to meet the requirements of fairness, and easily damaging the cards and causing card malfunctions.
A randomized control algorithm is introduced, which uses an entropy source to generate a randomization seed and a pseudo-random number generation module to generate motor control parameters, thereby achieving a high degree of randomization in the shuffling process and monitoring and adjusting the motor speed in real time to avoid anomalies.
It improves the randomness and fairness of shuffling, avoids card collisions and card malfunctions, and enhances the quality of shuffling.
Smart Images

Figure CN121490362A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of card shuffling machines, and in particular to a card shuffling machine control method, apparatus, equipment and storage medium. Background Technology
[0002] Existing automatic card shuffling machines typically use two motors to drive two rollers, which rub and mix two stacks of cards together. To achieve shuffling, a common control method is to make the two motors run at a fixed speed and in a synchronized sequence.
[0003] However, this simple control method has obvious drawbacks: First, the fixed parameters of its shuffling pattern result in a strong regularity and insufficient randomness in the mixing of cards, which fails to meet the requirements for fairness in shuffling. Secondly, a fixed rotation speed and synchronized action can easily cause the cards to collide and rub against each other at the intersection point, which will damage the cards over time. Finally, when the cards are of different ages and have different smoothness, the fixed control parameters cannot be adjusted adaptively, which can easily cause card jamming or multiple cards (double cards) to be drawn at once, resulting in low reliability. Summary of the Invention
[0004] To address the problems of existing shuffling machines having strong shuffling regularity, insufficient randomization, and low shuffling quality, this application provides a shuffling machine control method, device, equipment, and storage medium.
[0005] In one aspect of this disclosure, a method for controlling a shuffling machine is provided, comprising: Obtain the entropy source and mix the entropy sources to obtain the randomization seed; Based on a randomized seed, a pseudo-random number generation module is used to generate control parameters. The shuffling machine is controlled based on the generated control parameters.
[0006] By adopting the above technical solution and introducing randomization control, a high degree of randomization of the shuffling process is achieved, thereby improving the quality of the shuffling.
[0007] Preferably, the entropy source includes: the number of microseconds of the internal clock after the shuffler is powered on, the timestamp of the most recent user operation of the shuffler, the analog noise reading on the unconnected ADC pin of the shuffler, and the total time consumed in the last shuffle cycle of the shuffler.
[0008] By adopting the above technical solution, the entropy source is made highly random and unpredictable, providing a reliable random starting point for the highly randomized subsequent shuffling process.
[0009] Preferably, the control parameters include: random motor start delay time, random speed, and random pulse sequence, wherein the random pulse sequence includes multiple pulses, and each pulse includes a motor running time and a stop time.
[0010] By adopting the above technical solution, the control action of the motor becomes random and unpredictable, and correspondingly, the output card sequence is also completely different, thereby achieving a high degree of randomization in the shuffling process and improving the shuffling quality.
[0011] Preferably, controlling the operation of the shuffling machine based on the generated control parameters includes: In response to the shuffling start signal, the motor of the shuffling machine is started and run based on the corresponding control parameters; In response to the shuffle completion signal, the control motor is shut off after a delay.
[0012] By adopting the above technical solution, the motor continues to run for a period of time after the shuffle is completed, ensuring that the last few cards are fully shuffled.
[0013] Preferably, the shuffling machine control method further includes: Obtain card-playing information and motor torque information; In response to abnormal card play information and / or motor torque information, adjust the motor speed.
[0014] By adopting the above technical solution, adaptive control and adjustment of the shuffling process can be achieved, avoiding card collisions and reducing the failure rate of cards and multiple cards being shuffled at once.
[0015] Preferably, the abnormal card-playing information includes playing multiple cards at once.
[0016] Preferably, adjusting the motor speed in response to abnormal card-playing information and / or motor torque information includes: Identify abnormal card-playing information and reduce the motor speed; Identify abnormal motor torque information and increase the motor speed.
[0017] By adopting the above technical solutions, abnormal situations that occur during the shuffling process can be quickly eliminated, stable single-card play can be restored, card jamming can be prevented, and the impact on the cards can be reduced.
[0018] Furthermore, in another aspect of this disclosure, a shuffling machine control device is provided, comprising: The entropy source management module is configured to acquire entropy sources and mix them to obtain a randomization seed. The parameter generation module is configured to generate control parameters using a pseudo-random number generation module based on a randomized seed. The control module is configured to control the operation of the shuffling machine based on the generated control parameters.
[0019] By adopting the above technical solution, a high degree of randomization of the shuffling process is achieved, thereby improving the quality of the shuffling.
[0020] Furthermore, in another aspect of this disclosure, an apparatus is proposed, comprising a memory, a processor, and a computer program stored in the memory, the processor executing the computer program to implement the shuffling machine control method described in any of the preceding claims.
[0021] Furthermore, in another aspect of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the shuffling machine control method described in any of the preceding claims.
[0022] Beneficial technical effects: The shuffling machine control method, device, equipment, and storage medium of this application, by introducing a randomized control algorithm and a real-time feedback mechanism, achieves a high degree of randomization and adaptive control of the shuffling process, improves the shuffling quality, avoids card collisions, and reduces the failure rate of cards and multiple cards being shuffled at once. Attached Figure Description
[0023] Figure 1 This is a flowchart illustrating the shuffling machine control method in an embodiment of this application.
[0024] Figure 2 This is a schematic diagram of the structure of the shuffling machine control device in the embodiments of this application. Detailed Implementation
[0025] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, they are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and therefore detailed descriptions of them will be omitted. Furthermore, the drawings are merely illustrative of this disclosure and are not necessarily drawn to scale.
[0026] In one aspect of this disclosure, a shuffling machine control method is proposed, such as... Figure 1 As shown, the shuffling machine control method includes: S1. Obtain the entropy source and mix the entropy sources to obtain the randomization seed; S2. Based on the randomized seed, the control parameters are generated using a pseudo-random number generation module. S3. Control the operation of the shuffling machine based on the generated control parameters.
[0027] Specifically, the entropy sources in S1 include: the number of microseconds of the internal clock after the shuffler is powered on, the timestamp of the most recent user operation of the shuffler, the analog noise reading on the unconnected ADC pin of the shuffler, and the total time consumed in the last shuffle cycle of the shuffler.
[0028] As can be seen, the entropy sources mentioned in S1 are all physical entropy sources. Physical entropy sources have high randomness and unpredictability, providing a reliable random starting point for the high randomization of the subsequent shuffling process. This ensures the unpredictability and fairness of the shuffling process from the root, realizes the high randomization of the shuffling process, and improves the quality of shuffling.
[0029] The entropy source described in S1 can be obtained through a detection element or the built-in controller of the shuffling machine. For example, the number of microseconds of the internal clock after the shuffling machine is powered on, the timestamp of the last user operation of the shuffling machine, and the total time of the last shuffling cycle of the shuffling machine can be obtained by the timer built into the controller. The analog noise reading on the unconnected ADC pin in the shuffling machine can be obtained by connecting an ADC pin to VCC or GND or leaving it floating through a pull-up / pull-down resistor (such as 1MΩ) and then periodically sampling the voltage of the pin.
[0030] After obtaining multiple physical entropy sources in S1, these sources are mixed to form a number that cannot be guessed or copied, i.e., a randomization seed. Because the randomization seed is highly randomized and unpredictable, it provides a reliable starting point for the highly randomized subsequent shuffling process. This ensures the unpredictability and fairness of the shuffling process from the root, achieving a high degree of randomization and improving the quality of the shuffling.
[0031] In practice, the pseudo-random number generation module in S2 includes Mersenne Twister or AES-CTR DRBG supported by a hardware encryption accelerator. The pseudo-random number generation module uses a randomization seed to generate control parameters for the motor operation of the shuffling machine.
[0032] Specifically, the control parameters include: random motor start delay time, random speed, and random pulse sequence. The random pulse sequence includes multiple pulses, and each pulse includes a motor running time and a stop time.
[0033] It should be noted that the shuffling machine is usually equipped with two motors. The control parameters of the two motors are generated independently by the pseudo-random number generation module and are different from each other. Therefore, the random start delay time, random speed, and random pulse sequence of the motors are all different. The random pulse sequence includes multiple pulses, and the specific values of the motor running time and stop time of each pulse are different.
[0034] The random start delay time of the motor refers to the time during which the motor is delayed in starting. Two motors are randomly controlled to start one first and the other later. The motor that starts first may not start first again next time, and the motor that starts later may not start later again next time. The starting order and start delay time are completely random.
[0035] The random speed refers to the motor maintaining a stable speed after startup. This stable speed is not the motor's rated speed, but is independently and randomly generated by the pseudo-random number generation module. For example, within the range of 70% to 130% of the motor's rated speed, each motor is independently assigned a random speed for each shuffling cycle.
[0036] The random pulse sequence refers to controlling the motor to operate in a turn-stop-turn pulse mode. Each pulse contains the motor's running time and stop time. Within a pulse, after the motor's rotation time reaches the running time, it stops rotating. After the stop time reaches the stop time, the motor resumes rotation. This cycle continues. The running time and stop time within each pulse are randomly generated within a reasonable range. That is, the motor's running time in the previous pulse is not necessarily the same as, nor is it necessarily different from, the same applies to the stop time.
[0037] This design makes the motor's control actions highly random and unpredictable. Consequently, the output card sequence is completely different and has no discernible pattern, thus making each shuffle result truly random. The high degree of randomness in the shuffle process improves the quality of the shuffle.
[0038] Specifically, S3, based on the generated control parameters, controls the operation of the shuffling machine, including: S31. In response to the shuffling start signal, control the motor of the shuffling machine to start and run based on the corresponding control parameters; S32. In response to the shuffle completion signal, control the motor to shut off after a delay.
[0039] After the controller in S31 receives the shuffling start signal, for example, if the sensor detects that the cards to be shuffled are in place, the controller then controls the motor to work to shuffle the cards according to the control parameters generated in S2.
[0040] In S32, after the shuffling is detected to be complete, the motor is not immediately stopped, but is instead delayed to ensure that the last few cards are fully shuffled.
[0041] Furthermore, the shuffling machine control method also includes: S4. Obtain card playing information and motor torque information; S5. In response to abnormal card-playing information and / or motor torque information, adjust the motor speed.
[0042] During the shuffling process, card playing information and motor torque information are acquired in real time. The card playing information includes the movement of the cards away from the initial position when the motor rotates. Normal card playing information is that the cards are moved away from the initial position one by one. If it is detected that the cards are not moved away from the initial position one by one, such as multiple cards being played at once, it indicates that the card playing information is abnormal.
[0043] Similarly, during normal card playing, the cards are moved away from their initial positions one by one, and the motor torque remains almost constant. However, if a card gets stuck or collidees with another card during the playing process, the card playing will be obstructed, and the motor torque will change, indicating that the motor torque information is abnormal at this moment.
[0044] In S5, for abnormal card-playing information and / or motor torque information, the motor speed is adjusted accordingly.
[0045] Specifically, if the abnormal card-playing information is determined, such as playing multiple cards at once, the motor speed is reduced to restore stable single-card play.
[0046] If the abnormal motor torque information is confirmed, increase the motor speed to improve torque and eliminate any abnormalities such as card collisions that have not yet worsened or deteriorated, in order to prevent cards from being completely blocked by collisions. After the potential danger of card collisions is eliminated, the motor speed is restored to its original position to reduce the impact on the cards.
[0047] By adopting the above technical solution, abnormal situations that occur during the shuffling process can be quickly eliminated, stable single-card play can be restored, card jamming can be prevented, the impact on the cards can be reduced, adaptive control and adjustment of the shuffling process can be achieved, card collisions can be avoided, and the failure rate of card jamming and multiple cards being shuffled at once can be reduced.
[0048] The following detailed description of the shuffling machine control method of this application will be provided through a specific embodiment.
[0049] In this embodiment, the shuffling machine control method is as follows: S100, shuffling machine powered on: S200: The shuffling machine detects that the cards to be shuffled are in place, then acquires the entropy source and mixes the entropy sources to obtain a randomization seed; S300: Based on a randomized seed, control parameters are generated using a pseudo-random number generation module. S400: Based on the generated control parameters, control the motor of the shuffling machine to start shuffling; S500: After the shuffle is complete, the control motor shuts off after a delay.
[0050] During the shuffling process, card information and motor torque information are acquired in real time. Once an anomaly is detected, the motor speed is immediately adjusted to eliminate the anomaly.
[0051] As can be seen, the shuffling machine control method in this embodiment achieves a high degree of randomization and adaptive control of the shuffling process by introducing a randomized control algorithm and a real-time feedback mechanism, thereby improving the shuffling quality, avoiding card collisions, and reducing the failure rate of card shuffling and multiple cards being shuffled at once.
[0052] Furthermore, in another aspect of the embodiments of this disclosure, a shuffling machine control device is provided, such as... Figure 2 As shown, the shuffling machine control device includes: The entropy source management module is configured to acquire entropy sources and mix them to obtain a randomization seed. The parameter generation module is configured to generate control parameters using a pseudo-random number generation module based on a randomized seed. The control module is configured to control the operation of the shuffling machine based on the generated control parameters.
[0053] Specifically, the entropy source management module acquires physical entropy sources and then mixes them to form a number that cannot be guessed or copied, i.e., a randomization seed. This provides a reliable random starting point for the subsequent parameter generation module to generate random control parameters for the motor, thereby ensuring the unpredictability and fairness of the shuffling process from the root, achieving a high degree of randomization in the shuffling process, and improving the quality of the shuffling.
[0054] The parameter generation module relies on a pseudo-random number generation module, such as the Mersenne Twister algorithm or the AES-CTR DRBG algorithm supported by a hardware encryption accelerator, to generate random control parameters for the motor operation of the shuffling machine using a randomized seed. Due to the high randomness of the entropy source and the seed, the motor control parameters also become highly random and unpredictable. Consequently, the output card order is completely different and has no discernible pattern, thus making each shuffle result substantially random. The high randomization of the shuffling process improves the shuffling quality.
[0055] The control module controls the motor to start and run using the control parameters generated by the parameter generation module until the shuffling is complete.
[0056] By adopting the above technical solution, a high degree of randomization of the shuffling process is achieved, thereby improving the quality of the shuffling.
[0057] Furthermore, the shuffling machine control device also includes: The monitoring module is used to monitor the card-playing information and motor torque information of the shuffling machine in order to promptly identify abnormal card-playing information and / or motor torque information. The response module is used to adjust the motor speed to eliminate the anomaly when abnormal card-playing information and / or motor torque information is detected.
[0058] Specifically, if it is determined that the card-playing information is abnormal, such as playing multiple cards at once, the motor speed is reduced to restore stable single-card play.
[0059] If the abnormal motor torque information is confirmed, increase the motor speed to improve torque and eliminate any abnormalities such as card collisions that have not yet worsened or deteriorated, in order to prevent cards from being completely blocked by collisions. After the potential danger of card collisions is eliminated, the motor speed is restored to its original position to reduce the impact on the cards.
[0060] By adopting the above technical solution, abnormal situations that occur during the shuffling process can be quickly eliminated, stable single-card play can be restored, card jamming can be prevented, the impact on the cards can be reduced, adaptive control and adjustment of the shuffling process can be achieved, card collisions can be avoided, and the failure rate of card jamming and multiple cards being shuffled at once can be reduced.
[0061] Furthermore, in another aspect of this disclosure, an apparatus is proposed, comprising a memory, a processor, and a computer program stored in the memory, the processor executing the computer program to implement the shuffling machine control method described in any of the preceding claims.
[0062] The aforementioned physical devices may also include user interfaces, network interfaces, cameras, radio frequency (RF) circuits, sensors, audio circuits, Wi-Fi modules, etc. User interfaces may include displays, input units such as keyboards, etc., and optional user interfaces may also include USB interfaces, card reader interfaces, etc. Network interfaces may optionally include standard wired interfaces, wireless interfaces (such as Wi-Fi interfaces), etc.
[0063] Those skilled in the art will understand that the physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or combine certain components, or have different component arrangements.
[0064] Furthermore, in another aspect of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the shuffling machine control method described in any of the preceding claims.
[0065] Based on this understanding, the technical solution of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as CD-ROM, USB flash drive, mobile hard drive, etc.) and includes several instructions to cause a computer device (such as personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of this application.
[0066] In addition, the storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the aforementioned physical device, supporting the operation of information processing programs and other software and / or programs. The network communication module is used to enable communication between the various components within the storage medium, as well as communication with other hardware and software in the information processing physical device.
[0067] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platform, or it can be implemented by hardware.
[0068] Unless otherwise defined, the technical or scientific terms used in this application shall have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," "third," and similar terms used in this application specification and claims do not indicate any order, quantity, or importance, but are merely used to distinguish different components. The terms "an" or "a" and similar terms do not indicate a quantity limitation, but rather indicate the presence of at least one. The terms "comprising" or "including" and similar terms mean that the elements or objects preceding "comprising" or "including" encompass the elements or objects listed following "comprising" or "including" and their equivalents, and do not exclude other elements or objects. "Above," "below," "left," "right," etc., are used only to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0069] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure, shape and principle of this application should be covered within the scope of protection of this application.
Claims
1. A method for controlling a shuffling machine, characterized in that, include: Obtain the entropy source and mix the entropy sources to obtain the randomization seed; Based on a randomized seed, a pseudo-random number generation module is used to generate control parameters. The shuffling machine is controlled based on the generated control parameters.
2. The shuffling machine control method according to claim 1, characterized in that: The entropy sources include: the number of microseconds of the internal clock after the shuffler is powered on, the timestamp of the most recent user operation of the shuffler, the analog noise reading on the unconnected ADC pin of the shuffler, and the total time consumed in the last shuffle cycle of the shuffler.
3. The shuffling machine control method according to claim 1, characterized in that: The control parameters include: random motor start delay time, random speed, and random pulse sequence. The random pulse sequence includes multiple pulses, and each pulse includes a motor running time and a stop time.
4. The shuffling machine control method according to claim 1, characterized in that: The control of the shuffling machine based on the generated control parameters includes: In response to the shuffling start signal, the motor of the shuffling machine is started and run based on the corresponding control parameters; In response to the shuffle completion signal, the control motor is shut off after a delay.
5. The shuffling machine control method according to claim 1, characterized in that: Also includes: Obtain card-playing information and motor torque information; In response to abnormal card play information and / or motor torque information, adjust the motor speed.
6. The shuffling machine control method according to claim 5, characterized in that: The abnormal card-playing information includes playing multiple cards at once.
7. The shuffling machine control method according to claim 5, characterized in that: The adjustment of the motor speed in response to abnormal card-playing information and / or motor torque information includes: Identify abnormal card-playing information and reduce the motor speed; Identify abnormal motor torque information and increase the motor speed.
8. A control device for a card shuffling machine, characterized in that, include: The entropy source management module is configured to acquire entropy sources and mix them to obtain a randomization seed. The parameter generation module is configured to generate control parameters using a pseudo-random number generation module based on a randomized seed. The control module is configured to control the operation of the shuffling machine based on the generated control parameters.
9. An apparatus comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the shuffling machine control method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the shuffling machine control method according to any one of claims 1 to 7.