Multi-sample random selection method based on summation modulo algorithm and intelligent terminal
By adopting the multi-sample random selection method of summation and modulus algorithm on smart terminals, the fairness and security problems in the existing lottery technology are solved, and higher randomness and fairness are achieved, and the transparency of the results is enhanced. and authenticity.
Patent Information
- Application Number
- CN202411552528.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-01
- Publication Date
- 2025-02-18
AI Technical Summary
The existing random number generator relies on to draw technology has fairness and security issues, and lacks transparency and effective data recording and traceability mechanisms, making it difficult to verify the authenticity of draw results.
Using a multi-sample random selection method based on the summation and modulus algorithm, multiple options are displayed through the intelligent terminal, selecting operations are received, and the accumulated sum is calculated, and the selected numbers are calculated based on the item number range and accumulated sum are accumulated, to obtain the corresponding item information. To improve the randomness and fairness of the lottery.
It improves the randomness and fairness of the lottery, enhances the fairness and transparency of the lottery results, provides an effective data recording and traceability mechanism, and ensures the authenticity of the lottery results.
Smart Images

Figure CN119479136A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a multi-sample random selection method based on a sum modulus algorithm and an intelligent terminal. Background Art
[0002] The current mainstream lottery technology solutions mainly rely on random number generators, and their fairness and security are questioned to a certain extent. Although the lottery solution based on random number generators is simple to implement and low-cost, its fairness and security issues cannot be ignored. Due to possible loopholes or improper intervention in the random number generator, the fairness of the lottery results may be threatened. At the same time, the lottery process lacks transparency, and the user's trust will also be questioned. In addition, the existing lottery system often lacks effective data recording and tracing mechanisms, making it difficult to verify the authenticity of the lottery results. Summary of the invention
[0003] The present application provides a multi-sample random selection method and an intelligent terminal based on a sum modulus algorithm, and provides a new method for generating random numbers.
[0004] In a first aspect, the present application provides a multi-sample random selection method based on a sum modulus algorithm, comprising:
[0005] Displaying a first interface on the smart terminal, wherein a plurality of options are displayed, and each of the options corresponds to a number;
[0006] Receiving a selection operation of the smart terminal, wherein the selection operation is used to select a target option from among various candidate options;
[0007] In response to the selection operation, determining a cumulative sum of the target options selected by each intelligent terminal;
[0008] Determine an item number range, and calculate a lottery number based on the item number range and the cumulative sum;
[0009] The item information corresponding to the selected number is obtained, and the item information is displayed on the smart terminal corresponding to the selected number.
[0010] In the lottery method of this embodiment, each smart terminal participating in the lottery activity randomly selects an option, and the final lottery number is determined according to the target option selected by the currently participating smart terminal, which can improve the randomness of the lottery and thus improve the randomness and fairness of prize distribution.
[0011] In an exemplary embodiment, the calculating of the lottery number according to the item number range and the cumulative sum includes:
[0012] Performing a modulo operation on the accumulated sum based on the item number range to obtain a modulo result;
[0013] Add 1 to the modulo result to obtain the selected number.
[0014] In an exemplary embodiment, obtaining the item information corresponding to the selected number includes:
[0015] Query the pre-stored prize list to obtain the item information corresponding to the selected number.
[0016] In an exemplary embodiment, it also includes:
[0017] Obtaining item numbers and item information corresponding to each item number;
[0018] The item number and the item information corresponding to the item number are saved in the prize list.
[0019] In an exemplary embodiment, determining the article number range includes:
[0020] The maximum value of the item number in the item list is obtained to obtain the item number range.
[0021] In an exemplary embodiment, displaying the first interface on the smart terminal includes:
[0022] Displaying a preset jump object on the smart terminal, wherein the preset jump object includes one or more of text, voice, picture, video, link, and QR code;
[0023] When it is detected that the preset jump object is clicked, a first interface is displayed on the smart terminal.
[0024] In an exemplary embodiment, determining the cumulative sum of the target options selected by each smart terminal includes:
[0025] Determine the scheduled activity time;
[0026] Determine the cumulative sum of the target options selected by the smart terminal within the preset activity time.
[0027] In a second aspect, the present application provides a multi-sample random selection device based on a sum modulus algorithm, comprising:
[0028] A display module, used to display a first interface on the smart terminal, wherein the first interface displays a plurality of options, each of which corresponds to a number;
[0029] A user selection module, used to receive a selection operation of the smart terminal, wherein the selection operation is used to select a target option from among various options;
[0030] A summing module, configured to determine, in response to the selection operation, a cumulative sum of the target options selected by each intelligent terminal;
[0031] A modulus module, used to determine the item number range, and calculate the lottery number according to the item number range and the accumulated sum;
[0032] The information determination module is used to obtain the item information corresponding to the selected number and display the item information on the smart terminal corresponding to the selected number.
[0033] In a third aspect, the present application provides an intelligent terminal, which includes a memory and one or more processors. The memory stores one or more computer programs, and the computer programs include one or more instructions. When the instructions are executed by the processor, the intelligent terminal can execute the multi-sample random selection method based on the sum modulus algorithm in the first aspect.
[0034] In a fourth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on an electronic device, the electronic device executes a multi-sample random selection method based on a sum modulo algorithm as in the first aspect.
[0035] In a fifth aspect, the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the multi-sample random selection method based on the sum modulo algorithm as described in the first aspect.
[0036] It can be understood that the beneficial effects that can be achieved by the multi-sample random selection device, intelligent terminal, computer-readable storage medium, and computer program product based on the sum modulus algorithm provided above can refer to the beneficial effects in the first aspect and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A schematic diagram of a multi-sample random selection method based on a sum modulus algorithm provided in an embodiment of the present application;
[0038] Figure 2 A schematic diagram of the structure of the smart terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. For example, the first chip and the second chip are only used to distinguish different chips, and their order is not limited. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the difference. It should be noted that in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way. In the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more.
[0040] It should be noted that the “at…” in the embodiments of the present application may be the instant when a certain situation occurs, or may be a period of time after the occurrence of a certain situation, and the embodiments of the present application do not specifically limit this.
[0041] The implementation of this embodiment will be described in detail below with reference to the accompanying drawings.
[0042] This embodiment provides a multi-sample random selection method based on a sum modulo algorithm. Exemplarily, the multi-sample random selection method based on a sum modulo algorithm can be applied to various electronic devices such as computers (PCs), tablet computers, virtual reality / augmented reality devices, wearable devices, industrial computers, and car computers; when the electronic device is used as a smart terminal or server, the method can be implemented on the smart terminal or server side, or can be implemented through interaction between the smart terminal and the server. This embodiment does not make any special limitations on this.
[0043] Figure 1 A schematic flow chart of a multi-sample random selection method based on a sum modulo algorithm provided in an embodiment of the present application is shown.
[0044] like Figure 1 As shown, taking the lottery method executed on the server side as an example, the multi-sample random selection method based on the sum modulus algorithm may include the following steps:
[0045] Step 101: Displaying a first interface on a smart terminal, wherein the first interface displays a plurality of options, each of which corresponds to a number.
[0046] Step 102: receiving a selection operation of the smart terminal, wherein the selection operation is used to select a target option from among various candidate options.
[0047] Step 103: In response to the selection operation, determine the cumulative sum of the target options selected by each smart terminal.
[0048] Step 104: Determine an item number range, and calculate a lottery number based on the item number range and the accumulated sum.
[0049] Step 105: Acquire the item information corresponding to the selected number, and display the item information on the smart terminal corresponding to the selected number.
[0050] Specifically, displaying the first interface on the smart terminal includes the following: displaying a preset jump object on the smart terminal, wherein the preset jump object includes one or more of text, voice, picture, video, link, and QR code; when it is detected that the preset jump object is clicked, displaying the first interface on the smart terminal.
[0051] The smart terminal that clicks the preset jump object is the user participating in the lottery. The first interface is displayed on the smart terminals corresponding to these users. The first interface can display multiple options, each of which corresponds to a number, which can be a natural number. The multiple options can correspond to multiple consecutive natural numbers starting from 1, such as 1, 2, 3, 4, 5, 6, 7, 8, 9.
[0052] The candidate items may be displayed in various forms such as pictures, texts, etc., and the candidate items may also be directly displayed as corresponding numbers, but the present embodiment is not limited thereto.
[0053] Exemplarily, the options may also include several sub-options. For example, the options may be colors, graphics, animals, fruits, vegetables, grains, trees, flowers, etc., and the sub-options of each option may be subdivided by the symbolic items of the corresponding options. For example: the option is "flowers", and the sub-options may be subdivided into plum blossoms, lotus flowers, roses, chrysanthemums, and cherry blossoms. The option is "grains", and the sub-options may be subdivided into corn, rice, wheat, millet, and sorghum. The option is "animals", and the sub-options may be subdivided into tigers, cows, horses, sheep, and monkeys. The option is "graphics", and the sub-options may be subdivided into circles, squares, rectangles, triangles, and pentagons.
[0054] After the user selects a target option from multiple options, the smart terminal may further display sub-options corresponding to the target option, so that the user can select the final target option from the sub-options.
[0055] The number corresponding to the option is the item number of the option. Similarly, a sub-option can also correspond to a number, and the number corresponding to the sub-option is the item number of the sub-option. The item number can identify an item, such as a prize. The user can select one of the multiple options, and the smart terminal uploads the user's selection operation to the server. The server can determine the target option selected by the smart terminal based on the selection operation. The number corresponding to the target option selected by the smart terminal is the item number selected by the smart terminal.
[0056] The server refers to a host device that provides background services for the smart terminal. The server may include a cloud, a server cluster, etc., but the present implementation is not limited thereto.
[0057] Multiple smart terminals can perform selection operations in the same time period, and the server can obtain the target option selected by each smart terminal in the time period. Specifically: determine the preset activity time period; determine the cumulative sum of the target options selected by the smart terminals in the preset activity time period. The preset activity time period can be set according to actual needs, and the preset activity time period is dynamically updated. For example, if the preset activity time period is 5 seconds, it is updated every 5 seconds. This embodiment does not make special restrictions on this.
[0058] During the preset activity time period, the server can obtain the target options of the participating smart terminals. The number of participating smart terminals changes dynamically during the preset activity time period. When the preset activity time period arrives, the server can sum the numbers corresponding to the target options of all smart terminals during the period to obtain a cumulative total. Then, the lottery number is determined based on the cumulative total, specifically including: performing a modulo operation on the cumulative total based on the item number range to obtain a modulo result; adding 1 to the modulo result to obtain a lottery number.
[0059] For example, the options can be expressed in the form of the twelve zodiac signs, and each option can correspond to a number, specifically from 1 to 12. The item number range is 12. Each smart terminal selects a number from 1 to 12. Assuming that there are 10,000 smart terminals participating, the cumulative sum corresponding to the 10,000 target options selected is S. Based on the cumulative sum S, the item number range 12 is modulo: S%12, and the result is added by 1 to obtain the final selected number. That is, the selected number X = S%12+1. Among them, "%" represents modulo.
[0060] In this implementation, the final lottery number is determined based on the cumulative sum of the selections of the participating smart terminals. When the number of smart terminals participating in the lottery is different, the final cumulative sum will be different. A new random number generation method can be provided by using the algorithm of summing modulo 1, thereby ensuring the randomness of the drawing process and the fairness of item distribution.
[0061] After determining the lottery number, the method may include: querying a pre-stored item list to obtain the item information corresponding to the lottery number. The item list is pre-stored information, which is obtained by: obtaining the item number and the item information corresponding to each item number; and saving the item number and the item information corresponding to the item number to the prize list. The item number is the number corresponding to the option to be selected. After determining the target option selected by the user, the prize list may be queried to obtain the item information corresponding to the target option.
[0062] The item number range is the maximum value of the prize number in the prize list. The maximum value of the prize number in the prize list is obtained to obtain the item number range.
[0063] Exemplarily, the algorithm for determining the lottery numbers is called the "Xuanyun Modulus" algorithm. In the lottery activity designed for M participants (i.e., smart terminals), each participant has the right to choose one of the consecutive numbers from 1 to N. This selection process is entirely based on the voluntary participation of the participants without any form of restriction. When all participants have completed their selections, the system will summarize all M selected numbers and perform a modulo N operation on their sum to obtain a positive integer X between 0 and N-1. This X value, as the key to the lottery, determines the final ownership of the prize. Subsequently, we will add one to X to obtain X1. X1 will be a number between 1 and N, corresponding to a specific prize in the prize list. This design ensures the fairness and randomness of the lottery process, so that each participant, whether the first or last bettor, has the same chance to win the prize.
[0064] The following examples illustrate the application scenarios of the above method provided by this implementation.
[0065] For example, in a car-type smart terminal, a preset jump object is displayed on the car-type application terminal to facilitate the user to participate in the first interface. The details are as follows:
[0066] Lucky draw activity name: Chinese Zodiac
[0067] Lottery number arrangement: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
[0068] Total number of lottery numbers: N = 12
[0069] Numbers from 1 to 12 will be displayed on the smart terminal. Below the numbers, a group of selected photos or pictures of scenic spots will be displayed. Each picture is marked with the corresponding name of the scenic spot or park, aiming to present users with a diversified visual experience and increase the fun of the activity.
[0070] The prizes are detailed below:
[0071] Prize 1: Qualification to participate in a lucky draw, valid for one week.
[0072] Prize 2: Collect 12 coupons for this event within 12 days and you will be entitled to 1GB of mobile data provided by a telecommunications company.
[0073] Prize 3: Collect six winning tickets with consecutive numbers within ten days and you will receive a 20 yuan mobile phone recharge from a telecommunications company.
[0074] Prize 4: Collect four lottery tickets with the same number within ten days and you can receive a mobile phone recharge of 80 yuan provided by a telecommunications company.
[0075] Prize 5: Collect 15 winning tickets within 20 days and you will receive a 20-yuan gas e-voucher provided by a travel company.
[0076] Prize 6: Collect 8 winning tickets with consecutive numbers within 20 days and redeem them for a 50-yuan gas e-voucher.
[0077] Prize 7: Collect 5 lottery tickets with the same number within 20 days and you will receive an 80-yuan gas e-voucher provided by a travel company.
[0078] Prize 8: Collect 24 winning tickets within 30 days and you will receive a 30-yuan electronic shopping voucher from an e-commerce platform provided by a certain brand of car.
[0079] Prize 9: Collect 10 winning tickets with consecutive numbers within 30 days and receive a 100-yuan electronic shopping voucher from an e-commerce platform provided by a certain brand of car.
[0080] Prize 10: Collect 6 lottery tickets with the same number within 30 days and you will receive a 150 yuan electronic shopping voucher from an e-commerce platform.
[0081] The additional level of the lucky draw is set up as follows:
[0082] Level 1: The question is "Which theory did British scientist Newton propose? (1) The law of universal gravitation, (2) Theory of evolution." The correct answer is 1.
[0083] Level 2: The question is "Which era was Newton a scientist from? (1) 17th to 18th century, (2) 18th to 19th century." The correct answer is 1.
[0084] The lucky draw schedule is as follows:
[0085] The event starts at 6:00 on June 18, 2024 and ends at 24:00 on the same day. The total duration of the event is 18 hours.
[0086] The betting numbers can be changed up to 9 times a day.
[0087] The draw will be held within fifteen minutes after the end of the draw.
[0088] The prize sponsors of this lottery include a certain brand of mobile phone company, a certain telecommunications service provider, a certain travel company, a certain oil or petrochemical company, and an e-commerce platform, who jointly provide rich and diverse prize support for the event.
[0089] Furthermore, this embodiment also provides a multi-sample random selection device based on a sum modulo algorithm, which can be used to execute the above-mentioned multi-sample random selection method based on a sum modulo algorithm.
[0090] Specifically, the multi-sample random selection device based on the summation and modulo algorithm may include: a display module, used to display a first interface on a smart terminal, in which a plurality of candidate items are displayed, and each candidate item corresponds to a number; a user selection module, used to receive a selection operation of the smart terminal, and the selection operation is used to select a target option from each candidate item; a summation module, used to determine the cumulative sum of the target options selected by each smart terminal in response to the selection operation; a modulo module, used to determine an item number range, and calculate a selection number based on the item number range and the cumulative sum; an information determination module, used to obtain item information corresponding to the selection number, and display the item information on the smart terminal corresponding to the selection number.
[0091] In an exemplary embodiment, the modulo module is specifically used to: perform a modulo operation on the accumulated sum based on the article number range to obtain a modulo result; and add 1 to the modulo result to obtain a drawing number.
[0092] In an exemplary embodiment, the information determination module is used to query a pre-stored prize list to obtain the item information corresponding to the selected number.
[0093] In an exemplary embodiment, the lottery device further includes: an information storage module, which is used to: obtain prize numbers and item information corresponding to each prize number; and save the prize numbers and the item information corresponding to the prize numbers to a prize list.
[0094] In an exemplary embodiment, the modulus module is specifically used to obtain the maximum value of the prize number in the prize list to obtain the item number range.
[0095] In an exemplary embodiment, the display module is specifically used to: display a preset jump object on a smart terminal, wherein the preset jump object includes one or more of text, voice, picture, video, link, and QR code; when it is detected that the preset jump object is clicked, a first interface is displayed on the smart terminal.
[0096] In an exemplary embodiment, the summing module is specifically used to: determine a preset activity time; and determine the cumulative sum of the target options selected by the smart terminal within the preset activity time.
[0097] The specific details of each module or unit in the above-mentioned multi-sample random selection device based on the sum modulo algorithm have been described in detail in the corresponding multi-sample random selection method based on the sum modulo algorithm, so they will not be repeated here.
[0098] The embodiment of the present application also provides an electronic device, Figure 2 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure is shown. Figure 2 The electronic device 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0099] like Figure 2 As shown, electronic device 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In RAM 603, various programs and data required for system operation are also stored. CPU 601, ROM 602 and RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to bus 604.
[0100] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0101] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the embodiment of the present application are executed.
[0102] For example, when the computer program is executed by the central processing unit (CPU) 601, the following operations may be performed: Figure 1 The steps shown.
[0103] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0104] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0105] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, and the units described may also be arranged in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0106] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and the one or more programs include instructions, and when the instructions are executed by the electronic device, the electronic device implements the method described in the above embodiment.
[0107] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0108] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A multi-sample random selection method based on a sum modulus algorithm, characterized in that: include: Displaying a first interface on the smart terminal, wherein a plurality of options are displayed, and each of the options corresponds to a number; Receiving a selection operation of the smart terminal, wherein the selection operation is used to select a target option from among various candidate options; In response to the selection operation, determining a cumulative sum of the numbers of the target options selected by each smart terminal; Determine an item number range, and calculate a lottery number based on the item number range and the cumulative sum; The item information corresponding to the selected number is obtained, and the item information is displayed on the smart terminal corresponding to the selected number.
2. The multi-sample random selection method based on the sum modulus algorithm according to claim 1 is characterized in that: The calculating of the lottery number according to the item number range and the accumulated sum includes: Performing a modulo operation on the accumulated sum based on the item number range to obtain a modulo result; Add 1 to the modulo result to obtain the selected number.
3. The multi-sample random selection method based on the sum modulus algorithm according to claim 2 is characterized in that: The obtaining of the item information corresponding to the selected number includes: Query the pre-stored prize list to obtain the item information corresponding to the selected number.
4. The multi-sample random selection method based on the sum modulus algorithm according to claim 3 is characterized in that: Also includes: Obtaining item numbers and item information corresponding to each item number; The item number and the item information corresponding to the item number are saved in the prize list.
5. The multi-sample random selection method based on the sum modulus algorithm according to claim 4 is characterized in that: Determining the article number range includes: The maximum value of the item number in the item list is obtained to obtain the item number range.
6. The multi-sample random selection method based on the sum modulus algorithm according to claim 1 is characterized in that: The displaying of the first interface on the smart terminal includes: Displaying a preset jump object on the smart terminal, wherein the preset jump object includes one or more of text, voice, picture, video, link, and QR code; When it is detected that the preset jump object is clicked, a first interface is displayed on the smart terminal.
7. The multi-sample random selection method based on the sum modulus algorithm according to claim 1 is characterized in that: The step of determining the cumulative sum of the target options selected by each smart terminal includes: Determine a preset activity time period, wherein the preset activity time period is dynamically updated; Determine the cumulative sum of target options selected by the smart terminal within the preset activity time period.
8. An intelligent terminal, characterized in that: It includes a processor and a memory, wherein one or more computer programs are stored in the memory, and the one or more computer programs include instructions. When the instructions are executed by the smart terminal, the smart terminal executes the multi-sample random selection method based on the sum modulus algorithm as described in any one of claims 1-7.
9. The intelligent terminal according to claim 8, characterized in that: The smart terminals include desktop computers, tablet computers, smart phones, all-in-one computers, laptops, smart TVs, smart watches, smart glasses, and smart bracelets.