Resource configuration management method and device, equipment, storage medium and program product

By obtaining the quantity information of different types of resources and determining the target resources based on this information, the problem of frequent adjustment of the probability of winning the event prize in the prior art requires the efficiency and simplicity of resource allocation management.

CN119599729AInactive Publication Date: 2025-03-11CHINA SOUTHERN POWER GRID INTERNET SERVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311673834.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-07
Publication Date
2025-03-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When configuring the probability of winning the event prize, the winning probability needs to be adjusted frequently as the activity prize is updated, resulting in cumbersome maintenance and updates and low resource allocation management efficiency.

Method used

By obtaining the quantity information of different types of resources, when receiving the resource extraction request, the target resource is determined based on the information and responding to the resource extraction request. The specific steps include determining the total resource quantity information, generating a random number and determining the target resource based on it.

Benefits of technology

No need to maintain and update the winning probability table, which can effectively improve resource allocation management efficiency and simplify the resource extraction process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119599729A_ABST
    Figure CN119599729A_ABST
Patent Text Reader

Abstract

The invention relates to a resource configuration management method and device, equipment, a storage medium and a program product. The method comprises the following steps: acquiring resource quantity information respectively corresponding to a plurality of different types of resources to be extracted; after a resource extraction request is received, determining a target resource from the plurality of different types of resources according to the resource quantity information corresponding to the plurality of different types of resources; and responding to the resource extraction request based on the target resource. By adopting the method, the resource configuration management efficiency can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a resource configuration management method, device, equipment, storage medium and program product. Background Art

[0002] With the rapid development of the Internet, the forms of marketing activities have been constantly evolving, from the simple and crude shaking at the beginning, to smashing golden eggs, big turntables, sending red envelopes, and later to points malls, mini-games, etc. The external forms have been enriched, but the internal aspects always cannot avoid how to distribute activity prizes. In order to pursue better activity results, or due to cost, inventory and other reasons, a series of rules will be formulated for the prize drawing, which will lead to inaccurate probability of activity prize drawing.

[0003] In the prior art, when formulating the rules for drawing activity prizes, the activity prizes are drawn by configuring the winning probabilities. For example, a winning probability table is preset, in which the activity prize number, the number of activity prizes, and the winning probabilities corresponding to each activity prize are configured. When an activity prize drawing request is received, the activity prize is determined based on the winning probabilities of each activity in the activity winning probability table.

[0004] However, currently, when determining the activity prizes by setting the winning probability of the activity, since the activity prizes will be updated at any time, for example, if a new activity prize is added, if the winning probability is directly configured through the winning probability table, then each time a new activity prize is added, in order to ensure that the sum of the winning probabilities of each activity prize is 1, the winning probability of each activity prize must be readjusted, resulting in relatively cumbersome maintenance and updates, and low efficiency in the allocation and management of activity prize resources. Summary of the invention

[0005] Based on this, it is necessary to provide a resource configuration management method, device, equipment, storage medium and program product that can improve the efficiency of resource configuration management in response to the above technical problems.

[0006] In a first aspect, the present application provides a resource configuration management method, including: obtaining resource quantity information corresponding to multiple different types of resources to be extracted; after receiving a resource extraction request, determining a target resource from multiple different types of resources according to the resource quantity information corresponding to the multiple different types of resources; and responding to the resource extraction request based on the target resource.

[0007] In one of the embodiments, a target resource is determined from multiple different types of resources based on resource quantity information respectively corresponding to the multiple different types of resources, including: determining total resource quantity information based on resource quantity information respectively corresponding to the multiple different types of resources; determining a random number generation range based on the total resource quantity information; generating a target random number based on the random number generation range, and determining a target resource based on the target random number.

[0008] In one of the embodiments, determining the random number generation range according to the total resource quantity information includes: determining the number of random numbers that can be generated according to the total resource quantity information; and determining the random number generation range according to the number of random numbers that can be generated.

[0009] In one of the embodiments, determining a target resource based on a target random number includes: determining a target random number interval in which the target random number is located, wherein a random number generation range is divided into a plurality of non-overlapping random number intervals, and the plurality of non-overlapping random number intervals correspond one-to-one to a plurality of different types of resources; and taking the resource corresponding to the target random number interval as the target resource.

[0010] In one embodiment, the number of random numbers included in each random number interval is consistent with the resource quantity information of the corresponding resource.

[0011] In one of the embodiments, responding to a resource extraction request based on a target resource includes: determining whether a remaining quantity of the target resource satisfies a preset extractable condition; and if the extractable condition is satisfied, responding to the resource extraction request based on the target resource.

[0012] In a second aspect, the present application further provides a resource configuration management device, including:

[0013] The acquisition module is used to obtain the resource quantity information corresponding to multiple different types of resources to be extracted; the determination module is used to determine the target resource from multiple different types of resources according to the resource quantity information corresponding to multiple different types of resources after receiving the resource extraction request; the response module is used to respond to the resource extraction request based on the target resource.

[0014] In one of the embodiments, the determination module is specifically used to: determine the total resource quantity information based on the resource quantity information corresponding to multiple different types of resources; determine the random number generation range based on the total resource quantity information; generate a target random number based on the random number generation range, and determine the target resource based on the target random number.

[0015] In one of the embodiments, the determination module is specifically used to: determine the number of random numbers that can be generated according to the total resource quantity information; determine the random number generation range according to the number of random numbers that can be generated.

[0016] In one of the embodiments, the determination module is specifically used to: determine a target random number interval in which a target random number is located, wherein a random number generation range is divided into a plurality of non-overlapping random number intervals, and the plurality of non-overlapping random number intervals correspond one-to-one to a plurality of different types of resources; and use resources corresponding to the target random number interval as target resources.

[0017] In one embodiment, the number of random numbers included in each random number interval is consistent with the resource quantity information of the corresponding resource.

[0018] In one of the embodiments, the response module is specifically used to: determine whether the remaining quantity of the target resource meets the preset extractable condition; if the extractable condition is met, respond to the resource extraction request based on the target resource.

[0019] In a third aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements any of the steps described in the first aspect when executing the computer program.

[0020] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements any of the steps described in the first aspect above.

[0021] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements any of the steps described in the first aspect above.

[0022] The resource configuration management method, device, equipment, storage medium and program product obtain resource quantity information corresponding to multiple different types of resources to be extracted, and after receiving a resource extraction request, determine the target resource from multiple different types of resources according to the resource quantity information corresponding to the multiple different types of resources, and respond to the resource extraction request based on the target resource. In this way, the target resource is determined by the resource quantity information corresponding to different resource types, without the need to maintain and update the winning probability table, which can effectively improve the efficiency of resource configuration management. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0024] Figure 1 A schematic diagram of a process flow of a resource configuration management method in an embodiment;

[0025] Figure 2 A schematic diagram of a flow chart of a step of determining a target resource from a plurality of different types of resources in one embodiment;

[0026] Figure 3 A schematic diagram of a flow chart of a step of determining a random number generation range according to total resource quantity information in one embodiment;

[0027] Figure 4 A schematic diagram of a process of responding to a resource extraction request based on a target resource in an embodiment;

[0028] Figure 5 A schematic diagram of a flow chart of a resource configuration management method in another embodiment;

[0029] Figure 6 A structural block diagram of a resource configuration management device in an embodiment;

[0030] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0032] With the rapid development of the Internet, the forms of marketing activities have been constantly evolving, from the simple and crude shaking at the beginning, to smashing golden eggs, big turntables, sending red envelopes, and later to points malls, mini-games, etc. The external forms have been enriched, but the internal aspects always cannot avoid how to distribute activity prizes. In order to pursue better activity results, or due to cost, inventory and other reasons, a series of rules will be formulated for the prize drawing, which will lead to inaccurate probability of activity prize drawing.

[0033] In the prior art, when formulating the rules for drawing activity prizes, the activity prizes are drawn by configuring the winning probabilities. For example, a winning probability table is preset, in which the activity prize number, the number of activity prizes, and the winning probabilities corresponding to each activity prize are configured. When an activity prize drawing request is received, the activity prize is determined based on the winning probabilities of each activity in the activity winning probability table.

[0034] However, currently, when determining the activity prizes by setting the winning probability of the activity, since the activity prizes will be updated at any time, for example, if a new activity prize is added, if the winning probability is directly configured through the winning probability table, then each time a new activity prize is added, in order to ensure that the sum of the winning probabilities of each activity prize is 1, the winning probability of each activity prize must be readjusted, resulting in relatively cumbersome maintenance and updates, and low efficiency in the allocation and management of activity prize resources.

[0035] In view of this, the present application provides a resource configuration management method that can effectively improve the efficiency of resource configuration management. The resource configuration management method provided in the embodiment of the present application, its execution subject can be a resource configuration management device, and the resource configuration management device can be implemented by software, hardware, or a combination of software and hardware, and can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, and the computer device can be a server. In the following method embodiments, the execution subject is taken as an example to illustrate.

[0036] In an exemplary embodiment, Figure 1 As shown, a resource configuration management method is provided, which includes the following steps 101 to 103. Among them:

[0037] S101, the server obtains resource quantity information corresponding to a plurality of different types of resources to be extracted.

[0038] Optionally, the different types of resources to be drawn may be multiple types of activity prizes to be drawn corresponding to an ongoing activity, wherein for the resource quantity information corresponding to each activity prize, a pre-established activity prize table can be queried based on each activity prize, and the activity prize table stores multiple sets of correspondence between the number or name of each activity prize and the resource quantity information.

[0039] Optionally, the activity prize table may also store an activity identifier for determining whether the activity is in progress. The activity prize table may also store a user group identifier for determining that the activity prize of this type is only provided to a corresponding designated user group for drawing.

[0040] In a possible implementation, the initial values ​​of different types of resources and the resource quantity information corresponding to each resource can be initialized or updated by the operator through the terminal page.

[0041] In another possible implementation, initial values ​​of different types of resources and resource quantity information corresponding to each resource are initialized or updated by operation and maintenance personnel through structured query language (SQL) or other instructions.

[0042] S102: After receiving the resource extraction request, the server determines a target resource from a plurality of different types of resources according to resource quantity information respectively corresponding to the plurality of different types of resources.

[0043] Optionally, before determining the target resource from multiple different types of resources, the resource extraction request needs to be verified.

[0044] Optionally, the total resource quantity information can be obtained by summing the resource quantity information corresponding to multiple different types of resources. The probability of each type of resource being determined as the target resource, that is, the probability of winning, is the result of dividing the type of resource by the total resource quantity information.

[0045] In one possible implementation, a target resource may be determined from multiple different types of resources using an alias method, wherein the alias method is implemented by combining an equal probability distribution sampling method and a binomial distribution sampling method.

[0046] In another possible implementation, an array may be generated according to resource quantity information corresponding to a plurality of different types of resources, and one resource may be randomly selected from the array, and the selected resource type may be used as the target resource.

[0047] S103: The server responds to the resource extraction request based on the target resource.

[0048] Optionally, responding to the resource extraction request based on the target resource may be sending an extraction result, and the extraction result may include information such as the target resource type, exchange method, and validity period.

[0049] By acquiring the resource quantity information corresponding to the multiple different types of resources to be extracted, after receiving the resource extraction request, the target resource is determined from the multiple different types of resources according to the resource quantity information corresponding to the multiple different types of resources, and the resource extraction request is responded to based on the target resource. In this way, the target resource is determined by the resource quantity information corresponding to the different resource types, and the resource extraction request is responded to based on the target resource, without the need to maintain and update the winning probability table, which can effectively improve the efficiency of resource configuration management.

[0050] In an exemplary embodiment, Figure 2 As shown, based on the above embodiment, optionally, according to the resource quantity information respectively corresponding to the multiple different types of resources, the target resource is determined from the multiple different types of resources, including the following steps 201 to 203. Among them:

[0051] S201, the server determines total resource quantity information according to resource quantity information respectively corresponding to a plurality of different types of resources.

[0052] Optionally, the resource quantity information corresponding to multiple different types of resources is summed up to obtain the total resource quantity information.

[0053] S202: The server determines a random number generation range according to the total resource quantity information.

[0054] Optional, such as Figure 3As shown, determining the random number generation range according to the total resource quantity information may include the following steps:

[0055] S301, the server determines the number of random numbers that can be generated according to the total resource quantity information.

[0056] Optionally, the number of random numbers that can be generated is consistent with the total resource quantity information.

[0057] S302: The server determines a random number generation range according to the number of random numbers that can be generated.

[0058] Optionally, when the total resource quantity information is m, the number of random numbers that can be generated is m, and the random number generation range can be [n, m-1+n], or [n, m+n), or (n, m+n], where n is the left interval value of the random number generation range. For example, there are three different types of resources, A, B, and C, and the corresponding resource quantity information is 10, 20, and 30 respectively. At this time, the total resource quantity information is 60, then the random number generation range can be [0, 60), or [1, 60], or (8,68].

[0059] S203: The server generates a target random number according to the random number generation range, and determines a target resource according to the target random number.

[0060] In a possible implementation, a continuous algorithm can be used to determine the target resource according to the target random number, that is, to construct an array of length m, where m is the total resource quantity information, the elements in the array correspond to multiple different types of resources, the number of various elements corresponds to the quantity information of each resource, and the resource corresponding to the element in the array with the subscript of the target random number minus the left interval value is the target resource. For example, there are three different types of resources A, B, and C, and the corresponding resource quantity information is 10, 20, and 30 respectively, and the total resource quantity information is 60. At this time, an array with a capacity of 60 is constructed, and the 10 elements at positions 0-9 in the array are filled with A resources, the 20 elements at positions 10-29 are filled with B resources, and the 30 elements at positions 30-59 are filled with C resources. When the random number generation range is [30, 91) and the target random number is 78, the resource type corresponding to the element with the subscript 48 of the array element, that is, C resources, can be used as the target resource. It is simple and easy to implement when using a continuous algorithm to determine the target resource.

[0061] In another possible implementation, determining the target resource according to the target random number may adopt a discrete algorithm, which may include the following steps:

[0062] The first step is to determine the target random number interval in which the target random number lies.

[0063] The random number generation range is divided into a plurality of non-overlapping random number intervals, and the plurality of non-overlapping random number intervals correspond one-to-one to a plurality of different types of resources.

[0064] Optionally, the number of random numbers included in each random number interval is consistent with resource quantity information of the corresponding resource.

[0065] The second step is to use the resources corresponding to the target random number interval as the target resources.

[0066] Optionally, for example, there are three different types of resources, A, B, and C, and the corresponding resource quantity information is 10, 20, and 30 respectively, the total resource quantity information is 60, and the random number generation range can be [1, 61). At this time, the random number generation range is divided into 3 non-overlapping random number intervals, where [1-10] can be the random number interval corresponding to resource A, [11-30] can be the random number interval corresponding to resource B, and [31-60] can be the random number interval corresponding to resource C. If the target random number is 10, resource A is used as the target resource. It is more efficient to use a discrete algorithm to determine the target resource.

[0067] The above method determines the total resource quantity information according to the resource quantity information corresponding to multiple different types of resources; determines the random number generation range according to the total resource quantity information; generates a target random number according to the random number generation range, and determines the target resource according to the target random number. In this way, the target resource is determined by the resource quantity information corresponding to different resource types, which can effectively improve the efficiency of resource allocation management, and there is no need to maintain and update the winning probability table.

[0068] In an exemplary embodiment, Figure 4 As shown, based on the above embodiment, optionally, responding to the resource extraction request based on the target resource includes the following steps 401 to 402. Among them:

[0069] S401, the server determines whether the remaining quantity of the target resource meets a preset extractable condition.

[0070] Optionally, the preset drawable conditions may include a preset remaining quantity, a preset number of drawable times on the day, and a preset total number of drawable times, etc.

[0071] Optionally, in order to prevent the target resources from being consumed too quickly and causing the activity to be unable to continue, the remaining quantity of the target resources needs to be managed, and the remaining quantity of the target resources cannot be less than the preset remaining quantity.

[0072] Optionally, it is necessary to determine whether the number of times this type of resource is used as a target resource on a given day is less than a preset number of times that can be extracted on that day. If it is less than a preset number of times that can be extracted on that day, the target resource may meet a preset extractable condition.

[0073] Optionally, it is necessary to determine whether the total number of times this type of resource is used as a target resource is less than a preset total number of extractable times. If it is less than the preset total number of extractable times, the target resource may meet the preset extractable condition.

[0074] S402: If the extractable condition is met, the server responds to the resource extraction request based on the target resource.

[0075] Optionally, if the extractable condition is not met, the type of resource corresponding to the target resource is removed from the multiple different types of resources to be extracted, and the target resource is re-determined from the remaining multiple different types of resources. If the remaining quantity of the type of resources does not meet the preset extractable condition, the minimum resource is returned, where there is no quantity limit for the minimum resource to ensure that all resource extraction requests can be responded to.

[0076] The above-mentioned method determines whether the remaining quantity of the target resource meets the preset extractable conditions. If the extractable conditions are met, the extraction request is responded to based on the target resource. By configuring the prize pool control, winning limit and inventory control, the activity prizes can be effectively managed, which can improve the efficiency of resource allocation management and activity operation efficiency, and understand the dynamic inventory of activity prizes in real time, including prize management and dynamic monitoring of prizes, and plan appropriate activities according to the type, quantity, value, etc. of the prizes.

[0077] As an optional implementation, Figure 5 As shown, the resource configuration management method provided in the embodiment of the present application may include the following specific steps:

[0078] S501: The server obtains resource quantity information corresponding to a plurality of different types of resources to be extracted.

[0079] S502: The server determines total resource quantity information according to resource quantity information respectively corresponding to a plurality of different types of resources.

[0080] S503: The server determines the number of random numbers that can be generated according to the total resource quantity information.

[0081] S504: The server determines a random number generation range according to the number of random numbers that can be generated.

[0082] S505: The server generates a target random number according to the random number generation range, and determines a target random number interval in which the target random number is located.

[0083] The random number generation range is divided into a plurality of non-overlapping random number intervals, and the plurality of non-overlapping random number intervals correspond one-to-one to a plurality of different types of resources.

[0084] S506: The server takes the resource corresponding to the target random number interval as the target resource.

[0085] The number of random numbers included in each random number interval is consistent with the resource quantity information of the corresponding resource.

[0086] S507: The server determines whether the remaining quantity of the target resource meets a preset extractable condition.

[0087] S508: If the extractable condition is met, the server responds to the resource extraction request based on the target resource.

[0088] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0089] Based on the same inventive concept, the embodiment of the present application also provides a resource configuration management device for implementing the resource configuration management method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more resource configuration management device embodiments provided below can refer to the limitations of the resource configuration management method above, and will not be repeated here.

[0090] In an exemplary embodiment, Figure 6 As shown, a resource configuration management device 600 is provided, comprising: an acquisition module 601, a determination module 602 and a response module 603, wherein:

[0091] The acquisition module 601 is used to acquire resource quantity information corresponding to a plurality of different types of resources to be extracted.

[0092] The determination module 602 is used to determine the target resource from a plurality of different types of resources according to the resource quantity information respectively corresponding to the plurality of different types of resources after receiving the resource extraction request.

[0093] The response module 603 is used to respond to the resource extraction request based on the target resource.

[0094] In an optional embodiment of the present application, the determination module 602 is specifically used to determine the total resource quantity information based on the resource quantity information corresponding to multiple different types of resources; determine the random number generation range based on the total resource quantity information; generate a target random number based on the random number generation range, and determine the target resource based on the target random number.

[0095] In an optional embodiment of the present application, the determination module 602 is specifically configured to determine the number of random numbers that can be generated according to the total resource quantity information; and determine the random number generation range according to the number of random numbers that can be generated.

[0096] In an optional embodiment of the present application, the determination module 602 is specifically used to determine the target random number interval in which the target random number is located, wherein the random number generation range is divided into multiple non-overlapping random number intervals, and the multiple non-overlapping random number intervals correspond one-to-one to multiple different types of resources; the resources corresponding to the target random number interval are used as target resources.

[0097] In an optional embodiment of the present application, the number of random numbers included in each random number interval is consistent with the resource quantity information of the corresponding resource.

[0098] In an optional embodiment of the present application, the response module 603 is specifically used to determine whether the remaining quantity of the target resource meets the preset extractable condition; if the extractable condition is met, respond to the resource extraction request based on the target resource.

[0099] Each module in the resource configuration management device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0100] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 7As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a resource configuration management method is implemented.

[0101] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0102] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0103] Obtain resource quantity information corresponding to multiple different types of resources to be extracted; after receiving a resource extraction request, determine a target resource from multiple different types of resources according to the resource quantity information corresponding to the multiple different types of resources; and respond to the resource extraction request based on the target resource.

[0104] In one embodiment, a target resource is determined from multiple different types of resources based on the resource quantity information respectively corresponding to the multiple different types of resources. The processor also implements the following steps when executing the computer program: determining the total resource quantity information based on the resource quantity information respectively corresponding to the multiple different types of resources; determining a random number generation range based on the total resource quantity information; generating a target random number based on the random number generation range, and determining the target resource based on the target random number.

[0105] In one of the embodiments, the random number generation range is determined based on the total resource quantity information, and the processor further implements the following steps when executing the computer program: determining the number of random numbers that can be generated based on the total resource quantity information; and determining the random number generation range based on the number of random numbers that can be generated.

[0106] In one of the embodiments, the target resource is determined based on the target random number, and the processor further implements the following steps when executing the computer program: determining a target random number interval in which the target random number is located, wherein the random number generation range is divided into multiple non-overlapping random number intervals, and the multiple non-overlapping random number intervals correspond one-to-one to multiple different types of resources; and taking the resources corresponding to the target random number interval as the target resources.

[0107] In one embodiment, the number of random numbers included in each random number interval is consistent with the resource quantity information of the corresponding resource.

[0108] In one of the embodiments, based on the target resource response to the resource extraction request, the processor also implements the following steps when executing the computer program: determining whether the remaining quantity of the target resource meets the preset extractable condition; if the extractable condition is met, responding to the resource extraction request based on the target resource.

[0109] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0110] Obtain resource quantity information corresponding to multiple different types of resources to be extracted; after receiving a resource extraction request, determine a target resource from multiple different types of resources according to the resource quantity information corresponding to the multiple different types of resources; and respond to the resource extraction request based on the target resource.

[0111] In one embodiment, a target resource is determined from multiple different types of resources based on resource quantity information respectively corresponding to multiple different types of resources. When the computer program is executed by a processor, the following steps are also implemented: total resource quantity information is determined based on resource quantity information respectively corresponding to multiple different types of resources; a random number generation range is determined based on the total resource quantity information; a target random number is generated based on the random number generation range, and a target resource is determined based on the target random number.

[0112] In one of the embodiments, the random number generation range is determined based on the total resource quantity information, and the computer program, when executed by the processor, further implements the following steps: determining the number of random numbers that can be generated based on the total resource quantity information; and determining the random number generation range based on the number of random numbers that can be generated.

[0113] In one of the embodiments, the target resource is determined based on the target random number, and the computer program, when executed by the processor, further implements the following steps: determining a target random number interval in which the target random number is located, wherein the random number generation range is divided into multiple non-overlapping random number intervals, and the multiple non-overlapping random number intervals correspond one-to-one to multiple different types of resources; and taking the resource corresponding to the target random number interval as the target resource.

[0114] In one embodiment, the number of random numbers included in each random number interval is consistent with the resource quantity information of the corresponding resource.

[0115] In one of the embodiments, based on the target resource response to the resource extraction request, the computer program when executed by the processor also implements the following steps: determining whether the remaining quantity of the target resource meets the preset extractable condition; if the extractable condition is met, responding to the resource extraction request based on the target resource.

[0116] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0117] Obtain resource quantity information corresponding to multiple different types of resources to be extracted; after receiving a resource extraction request, determine a target resource from multiple different types of resources according to the resource quantity information corresponding to the multiple different types of resources; and respond to the resource extraction request based on the target resource.

[0118] In one embodiment, a target resource is determined from multiple different types of resources based on resource quantity information respectively corresponding to multiple different types of resources. When the computer program is executed by a processor, the following steps are also implemented: total resource quantity information is determined based on resource quantity information respectively corresponding to multiple different types of resources; a random number generation range is determined based on the total resource quantity information; a target random number is generated based on the random number generation range, and a target resource is determined based on the target random number.

[0119] In one of the embodiments, the random number generation range is determined based on the total resource quantity information, and the computer program, when executed by the processor, further implements the following steps: determining the number of random numbers that can be generated based on the total resource quantity information; and determining the random number generation range based on the number of random numbers that can be generated.

[0120] In one of the embodiments, the target resource is determined based on the target random number, and the computer program, when executed by the processor, further implements the following steps: determining a target random number interval in which the target random number is located, wherein the random number generation range is divided into multiple non-overlapping random number intervals, and the multiple non-overlapping random number intervals correspond one-to-one to multiple different types of resources; and taking the resource corresponding to the target random number interval as the target resource.

[0121] In one embodiment, the number of random numbers included in each random number interval is consistent with the resource quantity information of the corresponding resource.

[0122] In one of the embodiments, based on the target resource response to the resource extraction request, the computer program when executed by the processor also implements the following steps: determining whether the remaining quantity of the target resource meets the preset extractable condition; if the extractable condition is met, responding to the resource extraction request based on the target resource.

[0123] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0124] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0125] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A resource configuration management method, characterized in that: The method comprises: Obtain resource quantity information corresponding to multiple different types of resources to be extracted; After receiving the resource extraction request, determining a target resource from the multiple different types of resources according to the resource quantity information respectively corresponding to the multiple different types of resources; The resource extraction request is responded to based on the target resource.

2. The method according to claim 1, characterized in that The determining the target resource from the multiple different types of resources according to the resource quantity information respectively corresponding to the multiple different types of resources includes: Determining total resource quantity information according to the resource quantity information respectively corresponding to the multiple different types of resources; Determine a random number generation range according to the total resource quantity information; A target random number is generated according to the random number generation range, and the target resource is determined according to the target random number.

3. The method according to claim 2, characterized in that The determining of a random number generation range according to the total resource quantity information includes: Determine the number of random numbers that can be generated according to the total resource quantity information; The random number generation range is determined according to the number of random numbers that can be generated.

4. The method according to claim 2, characterized in that: The determining the target resource according to the target random number comprises: Determine a target random number interval in which the target random number is located, wherein the random number generation range is divided into a plurality of non-overlapping random number intervals, and the plurality of non-overlapping random number intervals correspond one-to-one to the plurality of different types of resources; The resource corresponding to the target random number interval is used as the target resource.

5. The method according to claim 4, characterized in that The number of random numbers included in each of the random number intervals is consistent with the resource quantity information of the corresponding resource.

6. The method according to claim 1, characterized in that The responding to the resource extraction request based on the target resource includes: Determining whether the remaining quantity of the target resource meets a preset extractable condition; If the extractable condition is met, responding to the resource extraction request based on the target resource.

7. A resource configuration management device, characterized in that: The device comprises: An acquisition module, used to obtain resource quantity information corresponding to a plurality of different types of resources to be extracted; A determination module, configured to determine a target resource from the multiple different types of resources according to resource quantity information respectively corresponding to the multiple different types of resources after receiving the resource extraction request; A response module is used to respond to the resource extraction request based on the target resource.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Prize winning method and device

    CN106934908A

  • Method and device for extracting object

    CN109960487A

  • Electronic coupon data matching method and device based on distributed cache

    CN110503484A

  • Lottery data processing method and device

    CN116664187A