java, Generate n random non-zero numbers that add up to a specific sum with each random number is a multiple of 0.5

前端 未结 0 1704
别跟我提以往
别跟我提以往 2021-01-28 10:07

I\'m having trouble trying to generate n non-zero numbers adding up to a specific sum with each random number is a multiple of 0.5 . For example, generate 3 numbers that add up

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