Chapter 888 . Global variables

Wheat Meng Jianghu soon started the public beta, and the public beta was not shocked, although it was very popular, but there was nothing abnormal. After the public beta, it officially started operation, and it was normal at the beginning, with more than 100,000 new users per day, and the number of games highlighted is a bit low. The seven-day retention rate is 60%, which is also good, which means that more than 60% of people are still playing this game after seven days. The payment rate of mobile games is 3%, and three out of 100 users are willing to spend money, which is very good. The average cost of paying users is 50 yuan per person, which is slightly lower, but there is no way to create a new game, and the accumulated user loyalty is not enough.

But after a while, the game suddenly became popular, with millions of new registered users every day, the retention rate was close to 100%, and the payment rate was close to 100%, but the average cost was still very small, only about ten yuan. 100% retention rate is counted, but what does 100% payment rate mean? No matter what kind of super masterpiece it is, it is impossible to have such a payment rate. Not to mention 100 percent, even 50 percent has never been approached, and 10 percent is already a miracle.

"What the hell is going on!" At the plenary meeting of wheat mobile, Huang Wenbin was furious.

"Also...... Still checking. "General commentary.

"What else to check! 100% pay rate, this must be something wrong, no mistake can have this number jΓΉ? It's not the legendary 100% virtual reality second world.,It's just a mobile card game.。 Huang Wenbin was very dissatisfied with this, "Millions of people have already registered, which means that millions of people know about it, and you actually sue sΓΉ and I am still investigating?" ”

"I ...... In fact, this ...... "said in a general way," there are indeed some very nonsensical rumors. ”

"What nonsense!" Zhu Yongnian, who was in charge of developing the wheat system, shouted, "I've already tried it, and it's clearly true!" ”

"Yes, there is such a big problem, it's just a mess!" Yu Jie, who is responsible for developing hardware, is also aggressive.

"I'm so!" Even Toms slapped the table, "How could there be such a big mistake!" ”

"Actually...... The losses weren't much either. Pu Xie hurriedly said.

"How could it not be!" Huang Wenbin said.

"What the hell are you doing!" The one who is most angry is Mickey, because it affects her the most.

"I'm still investigating, still investigating." Pu Xie said in a low voice, "The person responsible will be found soon." ”

"What's wrong?" Tang Yue didn't understand the situation yet.

"The cute rivers and lakes made by this guy have caused problems in the lottery system of our wheat mall!" Mickey said.

"Huh? How so? Tang Yue asked, "Meng Jianghu is a game, how can it affect the lottery system of the mall?" ”

"See for yourself!" Mickey said, "Download a cute river and lake to see." ”

"How?" Tang Yue opened the wheat application market, and at first glance, he saw that the wheat Meng Jianghu was hanging in the most conspicuous position, and the number of downloads was very staggering 30 million times, "It's so powerful, a game is played by more than 30 million people." As he spoke, he put the cute rivers and lakes into his mobile phone, installed it automatically, and entered the game, "There is no wheat mall here, and the mall sells generals." ”

"This is not a general, it's a knight." General Explanation Justification.

"It's not all the same." Tang Yue said, "How do you get it?" ”

"You go and top up a dollar." Mickey said, "And smoke the knights." ”

"Smoke the knights." Tang Yue recharged a dollar, and then took it to draw a knight, and hit Qiu Qianren, "And then?" ”

"This is a four-star knight, you charge another piece and draw a three-star one." Mickey said.

Tang Yue did as Mi Qi said, and drew it again, this time it was Ma Qingxiong, this is the third of the four ghosts in the Yellow River, and it is a two-star card. In the game, at least a three-star card is worth keeping, and a two-star card can only be fed to other cards for strengthening, or free players really can't get together a lineup to take a top. If the four ghosts of the Yellow River are complete, they can form a cooperation, and the blood volume attack can go up, reaching the level of a three-star knight, and there is a combination skill, or a full-screen attack, which is the strongest two-star card. However, no matter how strong it is, it is still two stars, and the highest can only be promoted to level 20 (30 levels for three stars, 40 levels for four stars, and 50 levels for five stars), and there is no future for cultivation. Even Huang Wenbin, who was in his previous life, would not keep it.

"Got a two-star one." Tang Yue said, "I'll smoke again." ”

"Two stars is better." Mickey said, "Okay, don't worry about it now, quit the game and go to the wheat mall and go to the lottery." ”

Tang Yue quit Meng Jianghu and went to the lottery system of the mall, "And then?" ”

"Now you go to the lottery, you will definitely get one dollar, no, you just drew a two-star card, you should be able to win two." Mickey said.

"So powerful?" Tang Yue went to the lottery, pressed the button, and after a few clicks, the pointer really stayed above two hundred points. The lottery system of this mall, one point is equal to one penny, and two hundred points is two yuan. Although it is said that the score cannot be exchanged for huΓ n money, it can only be used for shopping to offset the money, but there are so many things in the wheat mall, and the points and money are not much different, "It's not accidental, right?" ”

"No, I will definitely win." Mickey said angrily, "In the lottery in the game, as long as you are unlucky, you will win the lottery." It seems that this one-dollar chivalry lottery system has a high probability of winning a three-star knight, a small probability of winning a two-star knight, and a very small probability of drawing a four-star knight. If you draw a three-star knight, your luck is medium, and you can get a piece when you come out. If you draw a two-star knight, your luck will get better, and you can hit two pieces. ”

"If you draw four stars, your luck will turn bad, thank you for coming." General Explanation added.

"Is this what is called character?" Tang Yue felt very curious, "How did you get it?" She went to the game to recharge, rushed a hundred yuan, and then drew one by one, and when she drew two stars and three stars, she switched out to the mall to draw, and sure enough, it was the same as Mickey said, "This is really amazing." ”

"What a fart!" "It's a global variable!" ”

"What does it have to do with global variables?" Tang Yue doesn't know much about technology, "What is a global variable?" ”

"A variable is a place in the program that is used to store variable values, and the name of the variable is called to wΓ¨n." "Global variables are the variables that work throughout the program. When programming, we tell us not to use global variables, don't use global variables, which program you want to use variables, declare in which program, and log out when the program is out. Pu Xie used a global variable to store the luck value of Meng Jianghu, making such a big problem! ”

"I still don't understand." Tang Yue said, "What do you mean?" ”

"Meng Jianghu is a game of our wheat software." Mi Qi could only explain patiently to Tang Yue, "The username, password and funds owned are all universal, as long as you log in to the wheat software once, you can use this generic name to play games, visit the mall, etc., and Meng Jianghu is no exception." You can use this username as a global variable, which is common to the entire wheat software, including wheat games, wheat mall, wheat chat, wheat ride-hailing, etc. ”

"Oh, then I see!" Tang Yue suddenly realized.

"Meng Jianghu has a luck value system, if you have bad luck when you draw a knight, and the knight you draw is very bad, then the next time your luck will be a little better, and the possibility of drawing a powerful knight will increase a little. If the knight drawn last time is strong, the luck of the next time will be a little worse, and the possibility of drawing a strong knight is weakened. Mickey said.

"It's only like this when you spend money to draw knights, and you don't have this setting when you draw them for free. This is to prevent customers from spending a lot of money but not being able to draw their favorite knights, and stop playing in a fit of anger. "In fact, this is the boss's order, the boss spent more than 5,000 yuan last time and didn't draw Huang Rong's ......."

Huang Wenbin glared at him, and Pu Xie suddenly didn't dare to say any more.

"The values in the game, you can put them in the game program, why change the global variables!" Mickey banged on the table and said, "It's going to have an impact on other programs!" ”

"Actually, it doesn't have much effect, this luck value is not used by any program." Pu Xie whispered, he had thought that this value was completely useless.

"Mall lottery to use!" Mi Qi said that she was in charge of the mall, and she had the greatest impact on her, "More than 300 million people were pumped out!" ”

"More than 300 million?" Tang Yue was taken aback, "I have caused a loss of 300 million, why don't you hurry up and seal this bug!" ”

"It's sealed." Huang Wenbin said, "Now the points obtained from winning the lottery cannot be purchased independently, and can only be exchanged for no more than 5% of the total price of the goods, which is considered a discount." ”

"Why don't you just seal it?" Tang Yue asked, "Wouldn't it be okay to directly update the system and waste the luck value?" ”

"Millions of people have already signed up, so it's a promotion." Huang Wenbin said with a wry smile, "If it is abolished directly, others will definitely know that our system has a problem, and the impact on our wheat mall is too great, who will dare to put money on the wheat mall in the future." "The monitoring of the wheat mall is very strict, the number of winners is too large, and the operation immediately found the problem, but the analysis came and went, and I didn't know what was going on, so I had to manually change the winning rate, but it was too late, and I was robbed of more than 300 million yuan. After more than ten hours, I tracked down all the numbers on the server, and finally figured out that it was Meng Jianghu.

"More than 300 million!" Tang Yue sighed.

"In fact, I didn't lose so much, and I changed the winning rate immediately after the problem, and now I have changed it back." Huang Wenbin said, "And after a person wins 20 yuan, the winning rate will be reduced to lower than the original." These more than 300 million are scattered to tens of millions of users, and on average, one person is only ten or twenty yuan. The money obtained from winning the lottery can only be used to offset 5% of the payment, which is regarded as a discount for customers to promote. ”

"And the game is being promoted." General commentary.

"However, someone has to bear these losses!" Huang Wenbin said with a cold face.