Need for predictable random generator

前端 未结 30 1044
情话喂你
情话喂你 2020-11-27 09:04

I\'m a web-game developer and I got a problem with random numbers. Let\'s say that a player has 20% chance to get a critical hit with his sword. That means, 1 out of 5 hits

30条回答
  •  攒了一身酷
    2020-11-27 09:27

    Reaction on: "The problem is I got very bad real life results -- sometimes players get 3 crits in 5 hits, sometimes none in 15 hits."

    You have a chance of somewhere between 3 and 4 % of getting nothing in 15 hits...

提交回复
热议问题