How can I create randomly coordinates only one digit after decimal point (i.e 0.5 , -0.9) in Java

后端 未结 0 1536
梦毁少年i
梦毁少年i 2020-11-21 16:34

I want to create dartboards between -1 and 1. The x and y coordinates will be randomly generated. The coordinate has only one digit after the decimal point. (i.e. (0.5., -0.

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