A virtual resource distribution method, device, computer equipment and storage medium
By responding to the user's random acquisition request for virtual resources in a virtual scene, determining and selecting a virtual resource collection, and issuing it according to the number of historical requests and the initial distribution probability, the problem of two-level differentiation of the probability of virtual resource acquisition is solved, and virtual resource distribution is realized The centralized distribution of probability and the improvement of user experience.
Patent Information
- Application Number
- CN202011020097.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-24
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2040-09-24
AI Technical Summary
In virtual scenarios, there is a bipolar distribution of the probability of users obtaining virtual resources, resulting in a very low probability of some users, while a very high probability of some users obtaining it, and it is impossible to concentrate on the design's expected distribution probability.
By responding to the user's virtual resource random acquisition request, determine the virtual resource collection and select the target virtual resource collection from it. Get the historical number of requests for the target virtual object and add 1. If the preset guarantee number is reached, virtual resources will be distributed. Otherwise, random distribution will be made based on the initial distribution probability to ensure that the average distribution probability and the expected distribution probability are within the preset error range.
It effectively reduces the number of times users need to successfully obtain virtual resources for the first time, reduces the distribution of two levels of users, and ensures that the probability of issuing virtual resources is basically maintained near the expected probability of issuing.
Smart Images

Figure CN112138406B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a virtual resource distribution method, device, computer equipment and storage medium. Background Art
[0002] In virtual scenes, such as games, a lot of randomness is designed to create different game experiences and give players the fun of participating in the game. For example, a random distribution plan is designed for virtual resources in the game.
[0003] Random processes are often implemented through probability. For example, if the probability of a boss dropping top-level equipment in a game is designed to be 1%, then each time it drops, there is only a 1% chance that this top-level equipment will appear. Although the probability is designed in this way, the probability perceived by players during actual experience may not be the same. The probability distribution has a more serious polar distribution, that is, the probability of some players obtaining top-level equipment is very low, and the probability of some players obtaining top-level equipment is very high. Summary of the invention
[0004] The embodiments of the present invention provide a virtual resource distribution method, apparatus, computer equipment and storage medium, which can solve the problem of two-level differentiation of users' virtual resource acquisition probabilities, so that the virtual resource acquisition probabilities of more users can be concentrated near the expected distribution probabilities designed for virtual resources.
[0005] An embodiment of the present invention provides a method for issuing virtual resources, the method comprising:
[0006] In response to a virtual resource random acquisition request for a target virtual object, determining a virtual resource set corresponding to the virtual resource random acquisition request, wherein the expected release probabilities of virtual resources in the same virtual resource set are the same;
[0007] Determining a target virtual resource set from the virtual resource set, wherein the virtual resources in the target virtual resource set are used as target virtual resources;
[0008] Obtain the number of historical requests of the target virtual object to the target virtual resource set, and add 1 to the number of historical requests of the target virtual object; wherein the initial value of the number of historical requests is the preset expected number of requests corresponding to the target virtual resource set, and the preset expected number of requests is obtained based on the inverse of the expected release probability of the target virtual resource set;
[0009] If the number of historical requests after adding 1 is not less than the preset minimum guaranteed number of the target virtual resource set, the target virtual resource is issued to the target virtual object; otherwise, the target virtual resource is randomly issued to the target virtual object based on the initial issuance probability of the target virtual resource set, wherein, on the basis of the preset minimum guaranteed number, when the target virtual resource is randomly issued with the initial issuance probability, the error between the average issuance probability of the target virtual resource set and the expected issuance probability is within a preset error range;
[0010] If the target virtual resource is successfully issued, a preset number of times is subtracted from the historical number of requests for the target virtual object after being increased by 1, and the preset number of times is not equal to the historical number of requests after being increased by 1.
[0011] The embodiment of the present invention further provides a virtual resource distribution device, the virtual resource distribution device comprising:
[0012] A virtual resource set determining unit, configured to determine, in response to a virtual resource random acquisition request for a target virtual object, a virtual resource set corresponding to the virtual resource random acquisition request, wherein the expected release probabilities of virtual resources in the same virtual resource set are the same;
[0013] A target virtual resource set determining unit, configured to determine a target virtual resource set from the virtual resource set, wherein the virtual resources in the target virtual resource set are used as target virtual resources;
[0014] A historical request count acquisition unit, used to acquire the historical request count of the target virtual object to the target virtual resource set, and add 1 to the historical request count of the target virtual object; wherein the initial value of the historical request count is a preset expected request count corresponding to the target virtual resource set, and the preset expected request count is obtained based on the inverse of the expected release probability of the target virtual resource set;
[0015] A resource random issuance unit, for issuing the target virtual resource to the target virtual object if the number of historical requests after adding 1 is not less than the preset minimum number of the target virtual resource set, otherwise, randomly issuing the target virtual resource to the target virtual object based on the initial issuance probability of the target virtual resource set, wherein, on the basis of the preset minimum number of times, when the target virtual resource is randomly issued with the initial issuance probability, the error between the average issuance probability of the target virtual resource set and the expected issuance probability is within a preset error range;
[0016] The historical request count updating unit is used to subtract a preset count from the historical request count of the target virtual object after adding 1 if the target virtual resource is successfully issued, and the preset count is not equal to the historical request count after adding 1.
[0017] In an optional embodiment, the target virtual object is a target virtual team, and the virtual resource random acquisition request is a random acquisition request for virtual resources of a team type;
[0018] A historical request count acquisition unit, used to acquire the minimum historical request count of the virtual users in the target virtual team to the target virtual resource set, and add 1 to the historical request count of each virtual user;
[0019] Resource random distribution unit, used for:
[0020] If the minimum number of historical requests after adding 1 is not less than the preset minimum number of the target virtual resource set, the target virtual resource is issued to the target virtual team;
[0021] Otherwise, randomly issuing the target virtual resources to the target virtual team based on the initial issuance probability of the target virtual resource set;
[0022] The historical request count update unit is used to:
[0023] If the target virtual resource is successfully allocated, the preset number of times is subtracted from the historical request number of each virtual user after being increased by 1.
[0024] In an optional embodiment, the device further includes a virtual resource reissuing unit, configured to:
[0025] If the target virtual resource fails to be issued, controlling the target virtual resource set determination unit to execute the step of determining the target virtual resource set from the virtual resource set to obtain a new target virtual resource set;
[0026] If the new target virtual resource set uses the preset first issuance rule to issue the target virtual resource, controlling the historical request count acquisition unit to continue to execute the step of acquiring the historical request count of the target virtual object to the target virtual resource set, and adding 1 to the historical request count of the target virtual object;
[0027] If the new target virtual resource set uses the preset second issuing rule to issue the target virtual resources, the target virtual resources are issued to the target virtual object from the target virtual resource set based on the expected issuing probability of the new target virtual resource set.
[0028] In an optional embodiment, the device further comprises:
[0029] An expected request number acquisition unit, used to invert the expected release probability of the virtual resource set to obtain a preset expected request number of the virtual resource set;
[0030] A first association relationship acquisition unit is used to acquire a first association relationship between an actual issuance probability Pi of the virtual resource set and an initial issuance probability of the virtual resource set, wherein the first association relationship includes: the actual issuance probability Pi represents the probability of successfully issuing the virtual resource for the first time when issuing the virtual resource for the i-th time when issuing the virtual resource at the initial issuance probability of the virtual resource set;
[0031] A second association relationship acquisition unit is used to acquire a second association relationship between an actual issuance probability Pi of the virtual resource set and a preset minimum guaranteed number of times of the virtual resource set, wherein the second association relationship includes: when the value of the number i is from 1 to the preset minimum guaranteed number of times, the product of the actual issuance probability Pi and the number i is equal to the preset expected request number;
[0032] The initial release probability calculation unit is used to calculate the initial release probability of the virtual resource set based on the first association relationship and the second association relationship.
[0033] In an optional embodiment, the initial issuance probability calculation unit is used to:
[0034] Taking 0 as the minimum value of the initial issuance probability and the expected issuance probability as the maximum value of the initial issuance probability, calculating the intermediate value between the minimum value and the maximum value, taking the intermediate value as the initial issuance probability, and obtaining the actual issuance probability Pi of the i-th time based on the first association relationship;
[0035] The product of the actual issuance probability Pi and the number of times i is accumulated according to the range of the number of times i between 1 and the preset minimum number of times, and the accumulated result is used as the predicted expected number of requests;
[0036] If the absolute value of the error between the predicted expected number of requests and the preset expected number of requests is less than the error of the expected number corresponding to the virtual resource set, it is determined that the second association relationship is satisfied, and the intermediate value is determined as the value of the initial release probability;
[0037] If the predicted expected number of requests is not greater than the difference between the preset expected number of requests and the expected number error, it is determined that the second association relationship is not satisfied, the intermediate value is determined as a new minimum value, and the step of calculating the intermediate value between the minimum value and the maximum value is returned to execute;
[0038] If the predicted expected number of requests is not less than the sum of the preset expected number of requests and the expected number error, it is determined that the second association relationship is not satisfied, the intermediate value is determined as the new maximum value, and the step of calculating the intermediate value between the minimum value and the maximum value is returned to execute.
[0039] In an optional embodiment, the target virtual resource set determining unit is configured to:
[0040] Obtaining the importance level of each virtual resource set, wherein the lower the expected release probability of the virtual resource set, the higher the importance level of the virtual resource set;
[0041] Among the virtual resource collections that have not participated in the current virtual resource distribution process, a virtual resource collection with the highest importance level is selected as the target virtual resource collection.
[0042] In an optional embodiment, the historical request number updating unit is used to subtract the preset expected request number from the historical request number of the target virtual object after adding 1 if the target virtual resource is successfully issued.
[0043] In an optional embodiment, the virtual resource random acquisition request includes resource identification information of the virtual resource; the virtual resource set determination unit is used to:
[0044] When a virtual resource random acquisition request of a target virtual object is detected, acquiring resource identification information from the virtual resource random acquisition request;
[0045] Based on the resource identification information, the virtual resource set where the requested virtual resource is located is determined.
[0046] In an optional embodiment, the resource random issuing unit is used to:
[0047] Acquire existing virtual resource information of the target virtual object;
[0048] Based on the existing virtual resource information, determining the existing target virtual resource of the target virtual object in the target virtual resource set;
[0049] Based on the existing target virtual resources, the target virtual resources in the target virtual resource set are issued to the target virtual object.
[0050] The embodiment of the present invention provides a virtual resource issuance method, device, computer equipment and storage medium. Through the method of this embodiment, in response to a virtual resource random acquisition request for a target virtual object, a virtual resource set corresponding to the virtual resource random acquisition request can be determined, wherein the expected issuance probability of virtual resources in the same virtual resource set is the same; a target virtual resource set is determined from the virtual resource set, wherein the virtual resources in the target virtual resource set are used as target virtual resources; the number of historical requests of the target virtual object to the target virtual resource set is obtained, and the number of historical requests of the target virtual object is increased by 1; wherein the initial value of the number of historical requests is a preset expected number of requests corresponding to the target virtual resource set, and the preset expected number of requests is obtained based on the inverse of the expected issuance probability of the target virtual resource set; if the number of historical requests after the increase of 1 is not less than the preset minimum number of the target virtual resource set, the target virtual object is issued. Virtual resources, otherwise, the target virtual resources are randomly issued to the target virtual object based on the initial issuance probability of the target virtual resource set, wherein, on the basis of the preset minimum number of times, when the target virtual resources are randomly issued with the initial issuance probability, the error between the average issuance probability of the target virtual resource set and the expected issuance probability is within the preset error range; if the target virtual resource is successfully issued, the preset number of times is subtracted from the historical request number of the target virtual object after adding 1, the preset number of times is not equal to the historical request number after adding 1, and the initial value of the historical request number in this embodiment is not 0, which can reduce the initial probability loss of the initial issuance probability, and can also reduce the number of requests required to reach the preset minimum number of times, and reduce the number of times required for the user to successfully obtain the target virtual resource for the first time, and the initial issuance probability is set based on the expected issuance probability and the minimum number of times, which can ensure that the issuance probability of the virtual resource is basically maintained near the expected issuance probability, effectively reducing the distribution of two-level users. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0052] Figure 1 is a scenario diagram of a method for allocating virtual resources provided by an embodiment of the present invention;
[0053] Figure 2a is a flow chart of a virtual resource distribution method provided by an embodiment of the present invention;
[0054] Figure 2b It is a distribution chart of the number of successful virtual resource provisioning corresponding to the solution with the number of historical requests cleared;
[0055] Figure 2c It is a solution provided by an embodiment of the present invention for clearing the number of historical requests and subtracting the preset expected number of requests N, and a corresponding distribution diagram of the number of successful virtual resource issuances;
[0056] Figure 2d It is a method for issuing virtual resources provided by an embodiment of the present invention, and a distribution diagram of the number of successful issuance of virtual resources corresponding to a multi-player team game scenario;
[0057] Figure 2e It is a distribution diagram of the number of successful virtual resource distributions corresponding to the multiplayer team game scenario in a purely probabilistic virtual resource distribution scheme;
[0058] Figure 3 It is a structural diagram of a virtual resource distribution device provided by an embodiment of the present invention;
[0059] Figure 4 It is a structural schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0061] The embodiment of the present invention provides a virtual resource distribution method, device, computer equipment and storage medium. Specifically, the embodiment provides a virtual resource distribution method applicable to a virtual resource distribution device, and the virtual resource distribution device can be integrated in a computer equipment.
[0062] The computer device may be a terminal or other device, for example, a mobile phone, a tablet computer, a laptop computer, a desktop computer, etc.
[0063] The computer device may also be a server or other device. The server may be an independent physical server or a server cluster or distributed system composed of multiple physical servers. It may also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, as well as big data and artificial intelligence platforms, but is not limited to these.
[0064] The virtual resource distribution method of this embodiment may be implemented by a server and / or a terminal.
[0065] The method is described below by taking the example of a terminal and a server jointly implementing the method for issuing virtual resources.
[0066] refer to Figure 1 The virtual resource distribution system provided by the embodiment of the present invention includes a terminal 10 and a server 20, etc.; the terminal 10 and the server 20 are connected through a network, such as a wired or wireless network connection, etc., wherein the terminal 10 may be integrated with a game client.
[0067] The terminal 10 may be used to send a virtual resource random acquisition request to the server 20 .
[0068] The server 20 can be used to respond to a virtual resource random acquisition request for a target virtual object, determine a virtual resource set corresponding to the virtual resource random acquisition request, wherein the expected issuance probability of virtual resources in the same virtual resource set is the same; determine a target virtual resource set from the virtual resource set, wherein the virtual resources in the target virtual resource set are used as target virtual resources; obtain the historical request count of the target virtual object to the target virtual resource set, and add 1 to the historical request count of the target virtual object; wherein the initial value of the historical request count is a preset expected request count corresponding to the target virtual resource set, and the preset expected request count is based on the expected issuance probability of the target virtual resource set. The inverse of the issuance probability is obtained; if the number of historical requests after adding 1 is not less than the preset minimum number of the target virtual resource set, the target virtual resource is issued to the target virtual object, otherwise, the target virtual resource is randomly issued to the target virtual object based on the initial issuance probability of the target virtual resource set, wherein, on the basis of the preset minimum number of times, when the target virtual resource is randomly issued with the initial issuance probability, the error between the average issuance probability of the target virtual resource set and the expected issuance probability is within a preset error range; if the target virtual resource is successfully issued, the preset number is subtracted from the historical number of requests of the target virtual object after adding 1, and the preset number is not equal to the historical number of requests after adding 1.
[0069] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0070] The embodiment of the present invention will be described from the perspective of a virtual resource issuing device, which may be integrated in a server.
[0071] The embodiment of the present invention provides a method for issuing virtual resources. Figure 2a As shown, the process of the virtual resource distribution method of this embodiment can be as follows:
[0072] 201. In response to a virtual resource random acquisition request for a target virtual object, determine a virtual resource set corresponding to the virtual resource random acquisition request;
[0073] In this embodiment, the virtual resource random acquisition request may be triggered by a user through a terminal in a virtual scene. The virtual scene in this embodiment includes but is not limited to games, VR games, and the like.
[0074] The target virtual object in this embodiment may include a virtual user, or a virtual team composed of virtual users, wherein the virtual user can be represented by a game account used when logging into a virtual scene such as a game, or the virtual user can be understood as a virtual character used by the user in the virtual scene, etc. This embodiment has no limitation on this.
[0075] In this embodiment, the virtual resource set may include at least one virtual resource, such as a virtual card set, and a set includes at least one card. The expected probability of issuing a virtual resource set is the inverse of the preset expected number of requests for the virtual resource set. The expected probability of issuing a virtual resource for the virtual object is expressed as follows: when the virtual object initiates a virtual resource random acquisition request for the preset expected number of requests, the operation of issuing a virtual resource from the virtual resource set to the virtual object is performed once.
[0076] For example, the virtual card set includes 7 cards, and the expected probability of issuing the virtual card set is 10%. The 10% means that it is expected that the virtual object will issue a card from the virtual card set once for every 10 virtual resource random acquisition requests initiated by the virtual object.
[0077] Optionally, the expected release probabilities of different virtual resource sets may be different. It is understandable that the more important and rarer the virtual resource is, the smaller the expected release probability of its set will generally be set.
[0078] In one example, the virtual resource random acquisition request includes resource identification information of the virtual resource, and the step of “determining a virtual resource set corresponding to the virtual resource random acquisition request in response to the virtual resource random acquisition request for the target virtual object” may include:
[0079] In response to a virtual resource random acquisition request for a target virtual object, acquiring resource identification information from the virtual resource random acquisition request;
[0080] Based on the resource identification information, the virtual resource set where the requested virtual resource is located is determined.
[0081] In one example, the resource identification information may include resource type information, and the resource type information may be used to indicate the type of the requested virtual resource. Optionally, the step of "determining the virtual resource set where the requested virtual resource is located based on the resource identification information" may include: determining the target resource type of the requested virtual resource based on the resource type information, and determining the virtual resource set where the virtual resources belonging to the target resource type are located.
[0082] For example, when the virtual resource random acquisition request is a random acquisition request for cards, the resource type information in the virtual resource random acquisition request is card type identification information. The target resource type of the requested virtual resource is a card type, and the virtual resource set is a virtual resource set corresponding to cards of multiple levels.
[0083] Assume that there are four levels of cards, from high to low: UR (Ultra Rare), SR (Super Rare), R (Rare), and N (Normal), and there is at least one card in each level, then there are also four virtual resource sets, including the above four levels of cards. In this embodiment, the expected probability of issuing cards of the same level is the same. However, it can be understood that the higher the level of the card, the smaller the expected probability of issuing. For example, the expected probability of issuing a UR level card is 5%, which means that the user is expected to draw a UR level card every 20 times. For example, the expected probability of issuing a N level card is 50%, which means that the user may draw an N level card every 2 times.
[0084] Optionally, the solution of this embodiment can also be applied to the application scenario of opening a treasure box. In this example, the resource identification information can include the treasure box identification of the treasure box where the resource is located. Optionally, the step of "determining the virtual resource set where the requested virtual resource is located based on the resource identification information" can include: determining the target treasure box where the requested virtual resource is located based on the treasure box identification, and determining the virtual resource set in the target treasure box.
[0085] Optionally, the solution of this embodiment can also be applied to the scenario where a virtual team forms a team to brush a copy resource. In this example, the virtual resource random acquisition request can be used to request a team-type virtual resource, such as a key fragment of a copy resource, etc. The virtual resource set may include resources such as keys or key fragments of copy resources.
[0086] It can be understood that in this embodiment, the virtual resource random acquisition request is triggered by a virtual user. When the virtual user triggers the virtual resource random acquisition request as a member of a virtual team, the virtual resource random acquisition request can be regarded as a virtual resource random acquisition request for the entire virtual team.
[0087] 202. Determine a target virtual resource set from the virtual resource set, wherein the virtual resources in the target virtual resource set are used as target virtual resources;
[0088] In this embodiment, for various virtual resource sets in the virtual scene, corresponding importance levels can be set to identify the importance of the virtual resources in the set. The importance level of the virtual resource set can be set according to the expected release probability. The lower the expected release probability of the virtual resource set, the higher the importance level of the virtual resource set.
[0089] In this embodiment, when the number of virtual resource sets is one, the virtual resource set is the target virtual resource set. When the number of virtual resource sets is multiple, a set with a higher importance level can be obtained from the virtual resource sets as the target virtual resource set, and then subsequent resource distribution is performed. Optionally, the step of "determining the target virtual resource set from the virtual resource sets" may include: obtaining the importance level of each virtual resource set; and selecting the virtual resource set with the highest importance level from the virtual resource sets that are not involved in the virtual resource distribution process as the target virtual resource set.
[0090] 203. Obtain the historical request count of the target virtual object to the target virtual resource set, and add 1 to the historical request count of the target virtual object; wherein the initial value of the historical request count is the preset expected request count corresponding to the target virtual resource set, and the preset expected request count is obtained based on the inverse of the expected release probability of the target virtual resource set;
[0091] The number of historical requests in this embodiment indicates the number of random acquisition requests that have been triggered by the target virtual object for the target virtual resource set.
[0092] In this embodiment, the initial value of the historical request count is the value of the historical request count of the target virtual object for the target virtual resource set when the target virtual object makes the first random virtual resource acquisition request for the target virtual resource set. In the related art, this value is generally 0, but in this embodiment, this value is taken as the preset expected request count N corresponding to the target virtual resource set, where the preset expected request count N represents the expected request count of the user to successfully obtain the target virtual resource from the target virtual resource set. In this embodiment, the expected release probability of the target virtual resource set is P, then N=1 / P is satisfied.
[0093] In this embodiment, it is very important to set the initial value of the number of historical requests to the preset expected number of requests. Generally, the initial value is 0, and there will be a probability loss at this time. By setting the initial value to N, as long as the number of random times exceeds N, the probability loss can be avoided. Simply put, at the beginning of randomness, the probability will be lower than the overall probability. Only after the minimum guarantee is triggered can the probability be increased. When the number of random times is sufficient, the average probability of issuing virtual resources can be guaranteed to be consistent with the expected probability of issuing. At this time, the value of the number of requests of the player is N. Therefore, setting the initial value to N can achieve rapid convergence and avoid the initial probability loss.
[0094] 204. If the number of historical requests after adding 1 is not less than the preset minimum number of the target virtual resource set, the target virtual resource is issued to the target virtual object. Otherwise, the target virtual resource is randomly issued to the target virtual object based on the initial issuance probability of the target virtual resource set, wherein, on the basis of the preset minimum number of times, when the target virtual resource is randomly issued with the initial issuance probability, the error between the average issuance probability of the target virtual resource set and the expected issuance probability is within a preset error range.
[0095] In this embodiment, the initial release probability of the target virtual resource set is the actual release probability used when the target virtual resource set randomly releases resources. The value of the initial release probability is generally different from the value of the expected release probability, and the value of the initial release probability is generally smaller than the value of the expected release probability.
[0096] The average issuance probability of this embodiment can be understood as the average value of the actual issuance probabilities of multiple users when the target virtual resources are randomly issued with the initial issuance probability on the basis of a preset minimum number of times. Alternatively, the actual issuance probability can be obtained based on the ratio of the number of times a user obtains virtual resources of the target virtual resource set to the number of random requests by the user.
[0097] In this embodiment, the preset minimum guaranteed times corresponding to each virtual resource set may be different.
[0098] In this embodiment, it is considered that multiple draws of the same target virtual resource, such as multiple draws of the same card, are not conducive to improving the user experience. In this embodiment, when issuing target virtual resources, the target virtual resources can be reasonably issued based on the target virtual resources already available to the user. Optionally, the step of "issuing the target virtual resource to the target virtual object" may include:
[0099] Acquire existing virtual resource information of the target virtual object;
[0100] Based on the existing virtual resource information, determining the existing target virtual resource of the target virtual object in the target virtual resource set;
[0101] Based on the existing target virtual resources, the target virtual resources in the target virtual resource set are issued to the target virtual object.
[0102] Among them, other target virtual resources in the target virtual resource set except the existing target virtual resources may be issued to the target virtual object.
[0103] Alternatively, the existing target virtual resources whose number exceeds a preset number threshold can be counted as non-issued target virtual resources, and the non-issued target virtual resources are excluded from the range of random issuance, that is, the target virtual resources in the target virtual resource set except the non-issued target virtual resources are issued to the target virtual object.
[0104] For example, among the existing cards of virtual user A, the number of card X is 3. When issuing cards to virtual user A this time, the card issued to the virtual user is selected from the other cards in the card set except card X.
[0105] In this embodiment, it can be understood that the number of virtual resources in each virtual resource set is unlimited and is related to the setting of the game itself. When issuing the target virtual resource to the target virtual object, the number of target virtual resources issued is also related to the setting of the game. For example, if the game stipulates that for a virtual user, the target virtual resource set issues one target virtual resource at a time, then in step 204, one target virtual resource is issued to the target virtual object. If the game stipulates that for a virtual user, the target virtual resource set issues three target virtual resources at a time, then in step 204, three target virtual resources are issued to the target virtual object.
[0106] In this embodiment, the existing virtual resource information may be identification information of an existing target virtual resource, such as a resource name, a resource ID number, and the like.
[0107] In this embodiment, when the target virtual resources are randomly issued to the target virtual object based on the initial issuance probability of the target virtual resource set, the target virtual resources may also be reasonably randomly issued to the target virtual object based on the target virtual resources already existing in the target virtual object.
[0108] Optionally, the step of "randomly issuing target virtual resources to the target virtual object based on the initial issuance probability of the target virtual resource set" may include: obtaining existing virtual resource information of the target virtual object; determining the existing target virtual resources of the target virtual object in the target virtual resource set based on the existing virtual resource information; and randomly issuing the target virtual resources in the target virtual resource set to the target virtual object based on the existing target virtual resources and the initial issuance probability of the target virtual resource set.
[0109] 205. If the target virtual resource is successfully issued, the preset number of times is subtracted from the historical number of requests of the target virtual object after being increased by 1, and the preset number of times is not equal to the historical number of requests after being increased by 1.
[0110] The solution in this embodiment can be used to distribute virtual resources to virtual users in a single-player game scenario. In this single-player scenario, the historical request count of the target virtual object is the historical request count of the target virtual user for the target virtual resource set.
[0111] For example, taking the single-player game scenario of virtual user A as an example, assuming that virtual user A triggers a random virtual resource acquisition request for cards in the single-player game scenario, the server obtains the historical number of target card set requests by virtual user A for card type resources.
[0112] The solution in this embodiment can also be applied to the distribution of team-type virtual resources to virtual users in a virtual team in a multiplayer team game scenario. In this multiplayer team game scenario, the historical request number of the target virtual object for the target virtual resource set is the minimum historical request number of the virtual user of the target virtual team for the target virtual resource set. The setting of the historical request number can prevent players in the team from obtaining additional benefits, and ensure that the resource acquisition probability of each virtual user in the team mode is basically consistent with the resource acquisition probability in the single-player game scenario.
[0113] Optionally, the target virtual object is a target virtual team, and the random acquisition request for virtual resources is a random acquisition request for team-type virtual resources. The step of "obtaining the historical request times of the target virtual object for the target virtual resource set, and adding 1 to the historical request times of the target virtual object" may include: obtaining the minimum historical request times of virtual users in the target virtual team for the target virtual resource set, and adding 1 to the historical request times of each virtual user.
[0114] Correspondingly, the step of "if the number of historical requests after adding 1 is not less than the preset minimum number of the target virtual resource set, issuing the target virtual resource to the target virtual object; otherwise, randomly issuing the target virtual resource to the target virtual object based on the initial issuance probability of the target virtual resource set" includes:
[0115] If the minimum number of historical requests after adding 1 is not less than the preset minimum number of the target virtual resource set, the target virtual resource is issued to the target virtual team;
[0116] Otherwise, the target virtual resources are randomly issued to the target virtual team based on the initial issuance probability of the target virtual resource set.
[0117] Correspondingly, the step of "if the target virtual resource is issued successfully, subtracting the preset number of times from the historical request number of the target virtual object after adding 1" may include: if the target virtual resource is issued successfully, subtracting the preset number of times from the historical request number of each virtual user after adding 1.
[0118] For example, taking the scenario in which virtual users A, B, and C form a virtual team to refresh copy resources, when refreshing copy resources, virtual user A in the team triggers a random virtual resource acquisition request for copy-type resources. After receiving the request, the server determines the target copy resource set (the set may include at least one copy resource, and the copy resource may be a copy key or a copy key fragment, etc.), obtains the historical request times of virtual users AC for the target copy resource set, which are a, b, and c respectively, and adds 1 to times a, b, and c respectively. Assuming that time c is the smallest, then time c is the historical request times of the virtual team. If c+1 is less than the preset minimum guaranteed number M of the target copy resource set, then the copy resources in the target copy resource set are randomly issued to the virtual team (virtual user AC) according to the initial issuance probability P0 of the target copy resource set. If c+1 is equal to the preset minimum guaranteed number M of the target copy resource set, then the copy resources in the target copy resource set are issued to the virtual team (virtual user AC).
[0119] In this embodiment, for more important target virtual resources, the above-mentioned minimum guarantee + initial issuance probability scheme can be used to issue target virtual resources to target virtual users. The above-mentioned issuance rules of target virtual resources can be regarded as the first issuance rules. For less important virtual resources, other issuance rules can be used for issuance.
[0120] Optionally, in this embodiment, when there are multiple virtual resource sets, if the target virtual resource is not successfully issued to the target virtual object from the current target virtual resource set, a new target virtual resource set can be selected to issue the target virtual resource again until the issuance is successful. Of course, if the final issuance result of the virtual resource set is set to be empty in the issuance rule of the virtual resource, there is no restriction that the virtual resource must be issued successfully.
[0121] Optionally, the virtual resource distribution method of this embodiment may further include:
[0122] If the target virtual resource fails to be issued, returning to the step of determining the target virtual resource set from the virtual resource set to obtain a new target virtual resource set;
[0123] If the new target virtual resource set uses the preset first issuance rule to issue the target virtual resource, the step of obtaining the historical request times of the target virtual object to the target virtual resource set and adding 1 to the historical request times of the target virtual object is executed;
[0124] If the new target virtual resource set uses the preset second issuing rule to issue the target virtual resources, the target virtual resources are issued to the target virtual object from the target virtual resource set based on the expected issuing probability of the new target virtual resource set.
[0125] That is, when the new target virtual resource set adopts the preset first issuance rule to issue the target virtual resources, after the new target virtual resource set is determined, the steps of obtaining the historical request times of the target virtual object to the target virtual resource set and adding 1 to the historical request times of the target virtual object are continued to be executed, and when the new target virtual resource set adopts the preset second issuance rule to issue the target virtual resources, the steps of obtaining the historical request times of the target virtual object to the target virtual resource set and adding 1 to the historical request times of the target virtual object are not executed, but the target virtual resources are issued to the target virtual object from the target virtual resource set based on the expected issuance probability of the new target virtual resource set.
[0126] According to the aforementioned information steps on determining the target virtual resource in the virtual resource set, after the target virtual resource issuance fails, the importance level of each virtual resource set will be obtained; among the virtual resource sets that did not participate in the current virtual resource issuance process, the virtual resource set with the highest importance level will be selected as the target virtual resource set, thereby obtaining a new target virtual resource set.
[0127] In this embodiment, the solution for determining a new target virtual resource set from the virtual resource set can refer to the specific lower-level solution of step 202, which will not be described in detail here.
[0128] For a virtual resource set, a distribution rule identification information may be set. For example, if the distribution rule identification information is 1, the distribution rule of the virtual resource set is the preset first distribution rule. If the distribution rule identification information is 0, the distribution rule of the virtual resource set is the preset second distribution rule. A virtual resource set with a higher importance level may adopt the first distribution rule, and a virtual resource set with a lower importance level may adopt the second distribution rule.
[0129] Optionally, in this embodiment, parameters such as the preset expected number of requests and the initial issuance probability of each virtual resource set may be calculated in advance, and these parameters may be read from the memory resources of the server when necessary.
[0130] Optionally, the calculation process of the preset expected number of requests and the initial release probability of the virtual resource in this embodiment may include:
[0131] Obtaining a first association relationship between an actual issuance probability Pi of the virtual resource set and an initial issuance probability of the virtual resource set, wherein the first association relationship includes: the actual issuance probability Pi represents the probability of successfully issuing the virtual resource for the first time when issuing the virtual resource for the i-th time when issuing the virtual resource at the initial issuance probability of the virtual resource set;
[0132] Obtain a second association relationship between an actual issuance probability Pi of the virtual resource set and a preset minimum number of guaranteed requests for the virtual resource set, wherein the second association relationship includes: when the number i is between 1 and the preset minimum number of guaranteed requests, the product of the actual issuance probability Pi and the number i is equal to the preset expected number of requests;
[0133] The initial release probability of the virtual resource set is calculated based on the first association relationship and the second association relationship.
[0134] For example, assuming that the expected release probability of the virtual resource set is P, and the preset minimum number of requests is M, the value of M satisfies P*M>1, and the preset expected number of requests N=1 / P can also be determined.
[0135] Afterwards, the preset initial release probability P0 required for the virtual resource set can be calculated. During the calculation of P0, the value of P0 is such that the overall probability of successfully releasing the virtual resources with probability P0+M times is P.
[0136] In an example, Pi represents the probability that when virtual resources are issued with an initial issuance probability P0, the virtual resources in the virtual resource set need to undergo i random issuance processes before they can be successfully issued for the first time; then the first association relationship between Pi and P0 is:
[0137]
[0138] And, the second association relationship between Pi and N is:
[0139]
[0140] In this embodiment, based on the above two association relationships, P0 that meets the requirements can be calculated. The calculation method of P0 in this embodiment is not limited.
[0141] In one example, P0 may be calculated based on the principle of dichotomy.
[0142] Optionally, the step of “calculating the initial release probability of the virtual resource set based on the first association relationship and the second association relationship” may include:
[0143] Taking 0 as the minimum value of the initial issuance probability and the expected issuance probability as the maximum value of the initial issuance probability, calculating the intermediate value between the minimum value and the maximum value, taking the intermediate value as the initial issuance probability, and obtaining the actual issuance probability Pi of the i-th time based on the first association relationship;
[0144] The product of the actual issuance probability Pi and the number of times i is accumulated according to the range of the number of times i between 1 and the preset minimum number of times, and the accumulated result is used as the predicted expected number of requests;
[0145] If the absolute value of the error between the predicted expected number of requests and the preset expected number of requests is less than the error of the expected number corresponding to the virtual resource set, it is determined that the second association relationship is satisfied, and the intermediate value is determined as the value of the initial release probability;
[0146] If the predicted expected number of requests is not greater than the difference between the preset expected number of requests and the expected number error, it is determined that the second association relationship is not satisfied, the intermediate value is determined as a new minimum value, and the step of calculating the intermediate value between the minimum value and the maximum value is returned to execute;
[0147] If the predicted expected number of requests is not less than the sum of the preset expected number of requests and the expected number error, it is determined that the second association relationship is not satisfied, the intermediate value is determined as the new maximum value, and the step of calculating the intermediate value between the minimum value and the maximum value is returned to execute.
[0148] The expected number error corresponding to the virtual resource set in this embodiment can be set according to actual needs. For example, the expected number error can be set to a value such as 0.01.
[0149] In this embodiment, the specific process of calculating P0 based on the above two formulas may include:
[0150] Step 1. Assume that the expected number error is E, and preset the minimum probability p_min of the initial release probability P0 to be 0, and the maximum probability p_max to be P (i.e., the expected release probability);
[0151] Step 2. Take the middle value Q = (p_min + p_max) / 2 between the minimum and maximum values, temporarily set Q as P0, and substitute it into P i The calculation formula is used to obtain Pi corresponding to each number i (the value range of i is 1-M);
[0152] Then substitute Pi into the formula Take the cumulative value K obtained by calculating this formula as the predicted expected request times when P0 takes the value of Q;
[0153] Step 3. Compare the magnitude relationship between K and N:
[0154] If N - E < K < N + E, then take Q as P0;
[0155] If K <= N - E, then set p_min to Q, and return to execute Step 2 until N - E < K < N + E;
[0156] If K >= N + E, then set P_max to Q, and return to execute Step 2 until N - E < K < N + E.
[0157] In this embodiment, taking the expected distribution probability of the virtual resource set as 10% and the guaranteed number of times as 20 times as an example, assuming that the tolerance of the expected number of times is 0.01, through the above formula, the preset expected request times can be calculated as 10, and the required initial distribution probability is 8.18%.
[0158] When verifying this embodiment, through python script simulation, the number of players participating in the random distribution of virtual resources is set to 10,000, the random request times of each player is 100, and such a random request process is carried out 100 times in total. Then, taking the average value of the distribution probability, it is found that when the initial value of the historical request times is 0, the calculated average probability is 9.77%, with an error of 0.23%. When the initial value of the historical request times is 10, the calculated average probability is 10.066%, with an error of 0.066%. From this, it can be verified that the solution of this embodiment can effectively reduce the error of the distribution probability.
[0159] Optionally, in an example, the preset number of times in this embodiment is the preset expected request times. The step "if the target virtual resource is successfully distributed, subtract the preset number of times from the increased-by-1 historical request times of the target virtual object" may include: if the target virtual resource is successfully distributed, subtract the preset expected request times from the increased-by-1 historical request times of the target virtual object.
[0160] Although this embodiment also uses the guaranteed number of times, it is different from the traditional guaranteed scheme. In this embodiment, after each successful distribution of virtual resources, the historical request times of the virtual resource set are not cleared to 0, but the preset expected request times N are subtracted. The inventor's research finds that the scheme of clearing the historical request times to 0 does not converge for a single user, while the scheme of subtracting N from the historical request times converges for a single user, and the gap between the two is huge.
[0161] Taking the expected probability of issuing a virtual resource set as 10% and the preset minimum number of 20 times as an example, assuming that the error tolerance of the expected number is 0.01, and based on the expected probability of issuing 10%, the expected number of requests is calculated to be 10; based on the above calculation formula, the required initial issuance probability can be calculated to be 8.18%. This embodiment is simulated by a python script, and the number of players participating in the random process is set to 10,000, and the number of random times for each player is 100. A total of 100 such random processes are performed, and the average issuance probability is taken to obtain a distribution graph of the number of successful issuances of virtual resources to the players.
[0162] in, Figure 2b This is the distribution diagram of the number of successful virtual resource issuances to players in the solution where the number of historical request times is cleared to 0. It can be seen from the figure that the proportion of players who have successfully issued virtual resources 10 times is not very large, and the number of two-level users (such as users who have successfully issued virtual resources 5 times and users who have successfully issued virtual resources more than 14 times) is still quite large.
[0163] in, Figure 2c In this embodiment, after successfully issuing virtual resources, the distribution diagram of the number of successful virtual resource issuance of players is obtained by subtracting N from the number of historical requests. It can be seen from the figure that the proportion of players who have successfully issued virtual resources 10 times is more than half, and the number of second-level users (such as users who have successfully issued virtual resources more than 14 times) is relatively small compared with Figure 2b The number of two-level users in the game has been significantly reduced. This solution is more convergent in the final result. While ensuring the basic income of players (at least 10 successful acquisitions of virtual resources), it reduces the expectation of high income.
[0164] The solution of this embodiment also has a good effect in multi-player team game scenarios. For example, taking the expected probability of issuing a virtual resource set as 10% and the preset minimum number of 20 times as an example, assuming that the error tolerance of the expected number is 0.01, based on the expected probability of issuing, the expected number of requests can be calculated to be 10; according to the above calculation formula, the initial probability required for the virtual resource set can be calculated to be 8.18%. This embodiment uses a python script simulation to set the number of players participating in the random process to 1,000. Each time, a random team of 4 people is formed to randomly obtain virtual resources. There are a total of 1,000 random operations, and each group performs this random process 10 times each time. The average value of the resource issuance probability is taken to obtain the distribution graph of the number of successful issuances of virtual resources for users, that is, Figure 2d .
[0165] In this embodiment, a purely probabilistic random scheme is also simulated by a python script. In this scheme, virtual resources are randomly distributed to users with an expected distribution probability of 10%. Other simulation conditions such as the number of players and the number of team members are consistent with the parameters in the aforementioned simulation experiment. The distribution diagram of the number of successful distributions of virtual resources to users is shown in the figure below: Figure 2e shown.
[0166] contrast Figure 2d and Figure 2e , it can be seen that the graph obtained by adopting the scheme of guaranteed number of times + initial distribution probability is more convergent, and the number of hits of most players is concentrated between 95 and -105, which is very convergent, and can ensure that the actual benefits of players are basically close. Moreover, in the most extreme case, players can still have 84 hits, which guarantees the benefits of the players with the worst luck. In fact, these players with the worst luck can quickly converge to the expected value as long as they brush the dungeon alone because the number of hits is very large (far exceeding M).
[0167] Through the method of this embodiment, when a virtual resource random acquisition request of a target virtual object is detected, a virtual resource set corresponding to the virtual resource random acquisition request can be determined; a target virtual resource set can be determined from the virtual resource set, wherein the virtual resources in the target virtual resource set are used as target virtual resources; the number of historical requests of the target virtual object to the target virtual resource set is obtained, and the number of historical requests of the target virtual object is increased by 1; wherein the initial value of the number of historical requests is a preset expected number of requests corresponding to the target virtual resource set, and the preset expected number of requests is obtained based on the inverse of the expected issuance probability of the target virtual resource set; if the number of historical requests after adding 1 is not less than the preset minimum number of the target virtual resource set, the target virtual resource is issued to the target virtual object; otherwise, the target virtual resource is issued based on the initial issuance probability of the target virtual resource set. The target virtual resource is randomly distributed to the object, wherein, on the basis of a preset minimum number of times, when the target virtual resource is randomly distributed with the initial distribution probability, the error between the average distribution probability of the target virtual resource set and the expected distribution probability is within a preset error range; if the target virtual resource is successfully distributed, the preset number of times is subtracted from the historical request number of the target virtual object after adding 1, the preset number of times is not equal to the historical request number after adding 1, and the initial value of the historical request number in this embodiment is not 0, which can reduce the initial probability loss of the initial distribution probability, and can also reduce the number of requests required to reach the preset minimum number of times, and reduce the number of times required for the user to successfully obtain the target virtual resource for the first time, and the initial distribution probability is set based on the expected distribution probability and the minimum number of times, which can ensure that the distribution probability of the virtual resource is basically maintained near the expected distribution probability, effectively reducing the distribution of two-level users.
[0168] In order to better implement the above method, accordingly, an embodiment of the present invention also provides a virtual resource distribution device, which can be integrated into the server, for example, in the form of an application, which can be a server program corresponding to the game application on the terminal side.
[0169] refer to Figure 3 , the virtual resource distribution device comprises:
[0170] A virtual resource set determining unit 301 is configured to determine a virtual resource set corresponding to a virtual resource random acquisition request in response to a virtual resource random acquisition request of a target virtual object;
[0171] A target virtual resource set determining unit 302 is used to determine a target virtual resource set from the virtual resource set, wherein the virtual resources in the target virtual resource set are used as target virtual resources;
[0172] A historical request count acquisition unit 303 is used to acquire the historical request count of the target virtual object to the target virtual resource set, and add 1 to the historical request count of the target virtual object; wherein the initial value of the historical request count is the preset expected request count corresponding to the target virtual resource set, and the preset expected request count is obtained based on the inverse of the expected release probability of the target virtual resource set;
[0173] The resource random issuing unit 304 is used to issue the target virtual resource to the target virtual object if the number of historical requests after adding 1 is not less than the preset minimum number of the target virtual resource set, otherwise, randomly issue the target virtual resource to the target virtual object based on the initial issuance probability of the target virtual resource set, wherein, on the basis of the preset minimum number of times, when the target virtual resource is randomly issued with the initial issuance probability, the error between the average issuance probability of the target virtual resource set and the expected issuance probability is within a preset error range;
[0174] The historical request number updating unit 305 is used to subtract a preset number from the historical request number of the target virtual object after adding 1 if the target virtual resource is successfully issued, and the preset number is not equal to the historical request number after adding 1.
[0175] In an optional embodiment, the target virtual object is a target virtual team, and the virtual resource random acquisition request is a random acquisition request for virtual resources of a team type;
[0176] A historical request count acquisition unit, used to acquire the minimum historical request count of the virtual users in the target virtual team to the target virtual resource set, and add 1 to the historical request count of each virtual user;
[0177] Resource random distribution unit, used for:
[0178] If the minimum number of historical requests after adding 1 is not less than the preset minimum number of the target virtual resource set, the target virtual resource is issued to the target virtual team;
[0179] Otherwise, randomly issuing the target virtual resources to the target virtual team based on the initial issuance probability of the target virtual resource set;
[0180] The historical request count update unit is used to:
[0181] If the target virtual resource is successfully allocated, the preset number of times is subtracted from the historical request number of each virtual user after being increased by 1.
[0182] In an optional embodiment, the virtual resource issuing device further includes a virtual resource reissuing unit, which is used to:
[0183] If the target virtual resource fails to be issued, controlling the target virtual resource set determination unit to execute the step of determining the target virtual resource set from the virtual resource set to obtain a new target virtual resource set;
[0184] If the new target virtual resource set uses the preset first issuance rule to issue the target virtual resource, controlling the historical request count acquisition unit to continue to execute the step of acquiring the historical request count of the target virtual object to the target virtual resource set, and adding 1 to the historical request count of the target virtual object;
[0185] If the new target virtual resource set uses the preset second issuing rule to issue the target virtual resources, the target virtual resources are issued to the target virtual object from the target virtual resource set based on the expected issuing probability of the new target virtual resource set.
[0186] In an optional embodiment, the device further comprises:
[0187] An expected request number acquisition unit, used to invert the expected release probability of the virtual resource set to obtain a preset expected request number of the virtual resource set;
[0188] A first association relationship acquisition unit is used to acquire a first association relationship between an actual issuance probability Pi of the virtual resource set and an initial issuance probability of the virtual resource set, wherein the first association relationship includes: the actual issuance probability Pi represents the probability of successfully issuing the virtual resource for the first time when issuing the virtual resource for the i-th time when issuing the virtual resource at the initial issuance probability of the virtual resource set;
[0189] A second association relationship acquisition unit is used to acquire a second association relationship between an actual issuance probability Pi of the virtual resource set and a preset minimum guaranteed number of times of the virtual resource set, wherein the second association relationship includes: when the value of the number i is from 1 to the preset minimum guaranteed number of times, the product of the actual issuance probability Pi and the number i is equal to the preset expected request number;
[0190] The initial release probability calculation unit is used to calculate the initial release probability of the virtual resource set based on the first association relationship and the second association relationship.
[0191] In an optional embodiment, the initial issuance probability calculation unit is used to:
[0192] Taking 0 as the minimum value of the initial issuance probability and the expected issuance probability as the maximum value of the initial issuance probability, calculating the intermediate value between the minimum value and the maximum value, taking the intermediate value as the initial issuance probability, and obtaining the actual issuance probability Pi of the i-th time based on the first association relationship;
[0193] The product of the actual issuance probability Pi and the number of times i is accumulated according to the range of the number of times i between 1 and the preset minimum number of times, and the accumulated result is used as the predicted expected number of requests;
[0194] If the absolute value of the error between the predicted expected number of requests and the preset expected number of requests is less than the error of the expected number corresponding to the virtual resource set, it is determined that the second association relationship is satisfied, and the intermediate value is determined as the value of the initial release probability;
[0195] If the predicted expected number of requests is not greater than the difference between the preset expected number of requests and the expected number error, it is determined that the second association relationship is not satisfied, the intermediate value is determined as a new minimum value, and the step of calculating the intermediate value between the minimum value and the maximum value is returned to execute;
[0196] If the predicted expected number of requests is not less than the sum of the preset expected number of requests and the expected number error, it is determined that the second association relationship is not satisfied, the intermediate value is determined as the new maximum value, and the step of calculating the intermediate value between the minimum value and the maximum value is returned to execute.
[0197] In an optional embodiment, the target virtual resource set determining unit is configured to:
[0198] Obtaining the importance level of each virtual resource set, wherein the lower the expected release probability of the virtual resource set, the higher the importance level of the virtual resource set;
[0199] Among the virtual resource collections that have not participated in the current virtual resource distribution process, a virtual resource collection with the highest importance level is selected as the target virtual resource collection.
[0200] In an optional embodiment, the historical request number updating unit is used to subtract the preset expected request number from the historical request number of the target virtual object after adding 1 if the target virtual resource is successfully issued.
[0201] In an optional embodiment, the virtual resource random acquisition request includes resource identification information of the virtual resource; the virtual resource set determination unit is used to:
[0202] When a virtual resource random acquisition request of a target virtual object is detected, acquiring resource identification information from the virtual resource random acquisition request;
[0203] Based on the resource identification information, the virtual resource set where the requested virtual resource is located is determined.
[0204] In an optional embodiment, the resource random issuing unit is used to:
[0205] Acquire existing virtual resource information of the target virtual object;
[0206] Based on the existing virtual resource information, determining the existing target virtual resource of the target virtual object in the target virtual resource set;
[0207] Based on the existing target virtual resources, the target virtual resources in the target virtual resource set are issued to the target virtual object.
[0208] The device of this embodiment can determine the target virtual resource set based on the request when a random virtual resource acquisition request of the target virtual object is detected; obtain the historical number of requests of the target virtual object to the set; the initial value of the historical number of requests is the preset expected number of requests corresponding to the target virtual resource set; if the historical number of requests is not less than the preset minimum number of requests, the target virtual resource is issued to the target virtual object, otherwise the target virtual resource is issued based on the initial issuance probability of the target virtual resource set; if the issuance is successful, the preset number of times is subtracted from the historical number of requests. The initial value of the historical number of requests of this scheme is not 0, which can reduce the initial probability loss of the initial issuance probability and the number of requests required to reach the preset minimum number of requests. In addition, the setting of the initial issuance probability can ensure that the average issuance probability of the virtual resource set is basically maintained near the expected issuance probability, thereby reducing two-level users.
[0209] In addition, the embodiment of the present application also provides a computer device, which may be a terminal, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (Personal Digital Assistant, PDA) and other terminal devices. Figure 4 As shown, Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 1000 includes a processor 401 having one or more processing cores, a memory 402 having one or more computer-readable storage media, and a computer program stored in the memory 402 and executable on the processor. The processor 401 is electrically connected to the memory 402. Those skilled in the art will appreciate that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.
[0210] The processor 401 is the control center of the computer device 1000. It uses various interfaces and lines to connect the various parts of the entire computer device 1000, executes various functions of the computer device 1000 and processes data by running or loading software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, thereby monitoring the computer device 1000 as a whole.
[0211] In the embodiment of the present application, the processor 401 in the computer device 1000 will load instructions corresponding to the processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 will run the application programs stored in the memory 402 to implement various functions:
[0212] When a virtual resource random acquisition request of a target virtual object is detected, a virtual resource set corresponding to the virtual resource random acquisition request is determined, wherein the expected release probabilities of virtual resources in the same virtual resource set are the same;
[0213] Determining a target virtual resource set from the virtual resource set, wherein the virtual resources in the target virtual resource set are used as target virtual resources;
[0214] Obtain the historical request count of the target virtual object to the target virtual resource set, and add 1 to the historical request count of the target virtual object; wherein the initial value of the historical request count is a preset expected request count corresponding to the target virtual resource set, and the preset expected request count is obtained based on the inverse of the expected release probability of the target virtual resource set;
[0215] If the number of historical requests after adding 1 is not less than the preset minimum guaranteed number of the target virtual resource set, the target virtual resource is issued to the target virtual object; otherwise, the target virtual resource is randomly issued to the target virtual object based on the initial issuance probability of the target virtual resource set, wherein, on the basis of the preset minimum guaranteed number, when the target virtual resource is randomly issued with the initial issuance probability, the error between the average issuance probability of the target virtual resource set and the expected issuance probability is within a preset error range;
[0216] If the target virtual resource is successfully issued, a preset number of times is subtracted from the historical request number of the target virtual object after adding 1, and the preset number of times is not equal to the historical request number after adding 1.
[0217] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0218] Optional, such as Figure 4 As shown, the computer device 1000 further includes: a touch screen 403, a radio frequency circuit 404, an audio circuit 405, an input unit 406, and a power supply 407. The processor 401 is electrically connected to the touch screen 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406, and the power supply 407, respectively. Those skilled in the art can understand that Figure 4 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0219] The touch display screen 403 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 403 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the computer device, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 401, and can receive the command sent by the processor 401 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 401 to determine the type of touch event, and then the processor 401 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 403 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 403 can also be used as a part of the input unit 406 to realize the input function.
[0220] In the embodiment of the present application, the processor 401 executes the game application to generate a graphical user interface on the touch display screen 403, and the user can operate on the graphical user interface to trigger the random acquisition request of the virtual resource in this embodiment.
[0221] The radio frequency circuit 404 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other computer devices through wireless communication, and to send and receive signals between the network device or other computer devices.
[0222] The audio circuit 405 can be used to provide an audio interface between the user and the computer device through a speaker and a microphone. The audio circuit 405 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 405 and converted into audio data, and then the audio data is output to the processor 401 for processing, and then sent to another computer device through the radio frequency circuit 404, or the audio data is output to the memory 402 for further processing. The audio circuit 405 may also include an earphone jack to provide communication between an external headset and the computer device.
[0223] The input unit 406 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0224] The power supply 407 is used to supply power to various components of the computer device 1000. Optionally, the power supply 407 can be logically connected to the processor 401 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 407 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0225] although Figure 4 Not shown, the computer device 1000 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0226] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0227] As can be seen from the above, the computer device provided in this embodiment can improve the accuracy of the representation points of the preset map area, which is conducive to improving the user's interactive experience in the virtual map.
[0228] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0229] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute the steps in any virtual resource distribution method provided in the embodiment of the present application. For example, the computer program can execute the following steps:
[0230] When a virtual resource random acquisition request of a target virtual object is detected, a virtual resource set corresponding to the virtual resource random acquisition request is determined, wherein the expected release probabilities of virtual resources in the same virtual resource set are the same;
[0231] Determining a target virtual resource set from the virtual resource set, wherein the virtual resources in the target virtual resource set are used as target virtual resources;
[0232] Obtain the historical request count of the target virtual object to the target virtual resource set, and add 1 to the historical request count of the target virtual object; wherein the initial value of the historical request count is a preset expected request count corresponding to the target virtual resource set, and the preset expected request count is obtained based on the inverse of the expected release probability of the target virtual resource set;
[0233] If the number of historical requests after adding 1 is not less than the preset minimum guaranteed number of the target virtual resource set, the target virtual resource is issued to the target virtual object; otherwise, the target virtual resource is randomly issued to the target virtual object based on the initial issuance probability of the target virtual resource set, wherein, on the basis of the preset minimum guaranteed number, when the target virtual resource is randomly issued with the initial issuance probability, the error between the average issuance probability of the target virtual resource set and the expected issuance probability is within a preset error range;
[0234] If the target virtual resource is successfully issued, a preset number of times is subtracted from the historical request number of the target virtual object after adding 1, and the preset number of times is not equal to the historical request number after adding 1.
[0235] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0236] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0237] Since the computer program stored in the storage medium can execute the steps in any virtual resource issuance method provided in the embodiments of the present application, the beneficial effects that can be achieved by any virtual resource issuance method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0238] The above is a detailed introduction to a virtual resource distribution method, device, storage medium and computer equipment provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for issuing virtual resources, characterized in that: include: Inverting the expected release probability of the virtual resource set to obtain a preset expected number of requests for the virtual resource set; Obtaining a first association relationship between an actual issuance probability Pi of the virtual resource set and an initial issuance probability of the virtual resource set, wherein the first association relationship includes: the actual issuance probability Pi represents the probability of successfully issuing the virtual resource for the first time when issuing the virtual resource for the i-th time when issuing the virtual resource at the initial issuance probability of the virtual resource set; Obtain a second association relationship between an actual issuance probability Pi of the virtual resource set and a preset minimum number of guaranteed requests for the virtual resource set, wherein the second association relationship includes: when the number i is between 1 and the preset minimum number of guaranteed requests, the product of the actual issuance probability Pi and the number i is equal to the preset expected number of requests; Taking 0 as the minimum value of the initial issuance probability and the expected issuance probability as the maximum value of the initial issuance probability, calculating the intermediate value between the minimum value and the maximum value, taking the intermediate value as the initial issuance probability, and obtaining the actual issuance probability Pi of the i-th time based on the first association relationship; The product of the actual issuance probability Pi and the number of times i is accumulated according to the range of the number of times i between 1 and the preset minimum number of times, and the accumulated result is used as the predicted expected number of requests; If the absolute value of the error between the predicted expected number of requests and the preset expected number of requests is less than the error of the expected number corresponding to the virtual resource set, it is determined that the second association relationship is satisfied, and the intermediate value is determined as the value of the initial release probability; If the predicted expected number of requests is not greater than the difference between the preset expected number of requests and the expected number error, it is determined that the second association relationship is not satisfied, the intermediate value is determined as a new minimum value, and the step of calculating the intermediate value between the minimum value and the maximum value is returned to execute; If the predicted expected number of requests is not less than the sum of the preset expected number of requests and the expected number error, it is determined that the second association relationship is not satisfied, the intermediate value is determined as the new maximum value, and the step of calculating the intermediate value between the minimum value and the maximum value is returned to execute; In response to a virtual resource random acquisition request for a target virtual object, determining a virtual resource set corresponding to the virtual resource random acquisition request; Determining a target virtual resource set from the virtual resource set, wherein the virtual resources in the target virtual resource set are target virtual resources; Obtain the number of historical requests of the target virtual object to the target virtual resource set, and add 1 to the number of historical requests of the target virtual object; wherein the initial value of the number of historical requests is the preset expected number of requests corresponding to the target virtual resource set, and the preset expected number of requests is obtained based on the inverse of the expected release probability of the target virtual resource set; If the number of historical requests after adding 1 is not less than the preset minimum guaranteed number of the target virtual resource set, the target virtual resource is issued to the target virtual object; otherwise, the target virtual resource is randomly issued to the target virtual object based on the initial issuance probability of the target virtual resource set, wherein, on the basis of the preset minimum guaranteed number, when the target virtual resource is randomly issued with the initial issuance probability, the error between the average issuance probability of the target virtual resource set and the expected issuance probability is within a preset error range; If the target virtual resource is successfully issued, a preset number of times is subtracted from the historical number of requests for the target virtual object after being increased by 1, and the preset number of times is not equal to the historical number of requests after being increased by 1.
2. The method for issuing virtual resources according to claim 1, characterized in that: The target virtual object is a target virtual team, the virtual resource random acquisition request is a random acquisition request for a team-type virtual resource, and the acquiring of the historical request count of the target virtual object for the target virtual resource set and adding 1 to the historical request count of the target virtual object includes: Obtaining the minimum number of historical requests of the virtual users in the target virtual team to the target virtual resource set, and adding 1 to the number of historical requests of each virtual user; If the number of historical requests after adding 1 is not less than the preset minimum number of the target virtual resource set, the target virtual resource is issued to the target virtual object; otherwise, the target virtual resource is randomly issued to the target virtual object based on the initial issuance probability of the target virtual resource set, including: If the minimum number of historical requests after adding 1 is not less than the preset minimum number of the target virtual resource set, the target virtual resource is issued to the target virtual team; Otherwise, randomly issuing the target virtual resources to the target virtual team based on the initial issuance probability of the target virtual resource set; If the target virtual resource is successfully issued, subtracting a preset number of times from the historical number of requests of the target virtual object after adding 1, comprises: If the target virtual resource is successfully allocated, the preset number of times is subtracted from the historical number of requests of each virtual user after being increased by 1.
3. The method for issuing virtual resources according to claim 1, characterized in that: Also includes: If the target virtual resource fails to be issued, returning to the step of determining the target virtual resource set from the virtual resource set to obtain a new target virtual resource set; If the issuance rule set for the new target virtual resource set is the first issuance rule, executing the step of obtaining the historical request count of the target virtual object to the target virtual resource set and adding 1 to the historical request count of the target virtual object and subsequent steps to re-issue the target virtual resource; If the distribution rule set for the new target virtual resource set is the second distribution rule, based on the expected distribution probability of the new target virtual resource set, the target virtual resource is distributed to the target virtual object from the target virtual resource set.
4. The method for issuing virtual resources according to claim 1, characterized in that: The step of determining a target virtual resource set from the virtual resource set comprises: Obtaining the importance level of each virtual resource set, wherein the lower the expected release probability of the virtual resource set, the higher the importance level of the virtual resource set; Among the virtual resource collections that have not participated in the current virtual resource distribution process, a virtual resource collection with the highest importance level is selected as the target virtual resource collection.
5. The method for issuing virtual resources according to any one of claims 1 to 4, characterized in that: If the target virtual resource is successfully issued, subtracting a preset number of times from the historical number of requests of the target virtual object after adding 1, comprises: If the target virtual resource is successfully issued, the preset expected number of requests is subtracted from the historical number of requests of the target virtual object plus 1.
6. The method for issuing virtual resources according to any one of claims 1 to 4, characterized in that: The virtual resource random acquisition request includes resource identification information of the virtual resource; The step of determining, in response to a virtual resource random acquisition request for a target virtual object, a virtual resource set corresponding to the virtual resource random acquisition request includes: When a virtual resource random acquisition request of a target virtual object is detected, acquiring resource identification information from the virtual resource random acquisition request; Based on the resource identification information, the virtual resource set where the requested virtual resource is located is determined.
7. The method for issuing virtual resources according to any one of claims 1 to 4, characterized in that: The issuing of the target virtual resource to the target virtual object comprises: Acquire existing virtual resource information of the target virtual object; Based on the existing virtual resource information, determining the existing target virtual resource of the target virtual object in the target virtual resource set; Based on the existing target virtual resources, the target virtual resources in the target virtual resource set are issued to the target virtual object.
8. A virtual resource distribution device, characterized in that: include: An expected request number acquisition unit, used to invert the expected release probability of the virtual resource set to obtain a preset expected request number of the virtual resource set; A first association relationship acquisition unit is used to acquire a first association relationship between an actual issuance probability Pi of the virtual resource set and an initial issuance probability of the virtual resource set, wherein the first association relationship includes: the actual issuance probability Pi represents the probability of successfully issuing the virtual resource for the first time when issuing the virtual resource for the i-th time when issuing the virtual resource at the initial issuance probability of the virtual resource set; A second association relationship acquisition unit is used to acquire a second association relationship between an actual issuance probability Pi of the virtual resource set and a preset minimum guaranteed number of times of the virtual resource set, wherein the second association relationship includes: when the value of the number i is from 1 to the preset minimum guaranteed number of times, the product of the actual issuance probability Pi and the number i is equal to the preset expected request number; An initial release probability calculation unit is used to take 0 as the minimum value of the initial release probability and the expected release probability as the maximum value of the initial release probability, calculate the intermediate value between the minimum and maximum values, take the intermediate value as the initial release probability, and obtain the i-th actual release probability Pi based on the first association relationship; accumulate the product of the actual release probability Pi and the number of times i between 1 and the preset minimum number of times according to the range of the number of times i, and use the accumulated result as the predicted expected request number; if the absolute value of the error between the predicted expected request number and the preset expected request number is less than the expected number corresponding to the virtual resource set error, determine that the second association relationship is satisfied, and determine the intermediate value as the value of the initial issuance probability; if the predicted expected number of requests is not greater than the difference between the preset expected number of requests and the expected number of errors, determine that the second association relationship is not satisfied, determine the intermediate value as the new minimum value, and return to execute the step of calculating the intermediate value of the minimum value and the maximum value; if the predicted expected number of requests is not less than the sum of the preset expected number of requests and the expected number of errors, determine that the second association relationship is not satisfied, determine the intermediate value as the new maximum value, and return to execute the step of calculating the intermediate value of the minimum value and the maximum value; A virtual resource set determining unit, configured to determine, in response to a virtual resource random acquisition request for a target virtual object, a virtual resource set corresponding to the virtual resource random acquisition request, wherein the expected release probabilities of virtual resources in the same virtual resource set are the same; A target virtual resource set determining unit, configured to determine a target virtual resource set from the virtual resource set, wherein the virtual resources in the target virtual resource set are used as target virtual resources; A historical request count acquisition unit, used to acquire the historical request count of the target virtual object to the target virtual resource set, and add 1 to the historical request count of the target virtual object; wherein the initial value of the historical request count is a preset expected request count corresponding to the target virtual resource set, and the preset expected request count is obtained based on the inverse of the expected release probability of the target virtual resource set; A resource random issuance unit, for issuing the target virtual resource to the target virtual object if the number of historical requests after adding 1 is not less than the preset minimum number of the target virtual resource set, otherwise, randomly issuing the target virtual resource to the target virtual object based on the initial issuance probability of the target virtual resource set, wherein, on the basis of the preset minimum number of times, when the target virtual resource is randomly issued with the initial issuance probability, the error between the average issuance probability of the target virtual resource set and the expected issuance probability is within a preset error range; The historical request count updating unit is used to subtract a preset count from the historical request count of the target virtual object after adding 1 if the target virtual resource is successfully issued, and the preset count is not equal to the historical request count after adding 1.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A storage medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Improved multiplier for lottery game
CN101553850A
Method and device for distributing virtual resource
CN105511959A