title: Generating decimal random numbers in Java in a specific range?
body: <p>How can I generate a random whole decimal number between two specified variables in java, 
  e.g. x = -1 and y = 1 would output any of -1.0, -0.9, -0.8, -0.7,….., 0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.9, 1.0?</p>
  
  <p>Note: it should include 1 and -1 ([-1,1]) . And give one decimal number after point.</p>