Is there a way to generate random numbers between 0 and 500, but if first number is 300 not to deviate more than 20 for the next?

前端 未结 0 763
栀梦
栀梦 2020-12-10 02:18

Is there a way to generate random numbers between 0 and 500, but if first number for example, is 300, not to deviate more than 20 for the next? I don\'t want 500 then 0 then

相关标签:
回答
  • 消灭零回复
提交回复
热议问题