日期:2014-05-20  浏览次数:20594 次

问一道数学题

1/17>x>1/18

求这个x

用java怎么做出来啊? 求教

------解决方案--------------------
1/17>x>1/18

<=>17<17*18*x<18

<=> 17<17+Math.random()<18

 => 17*18*x=17+Math.random()
 => x=(17+Math.random())/(17*18)