Generate Random Fractions with JavaScript

Continuing the discussion from freeCodeCamp Challenge Guide: Generate Random Fractions with JavaScript:

function randomFraction() {

  // Only change code below this line
  let i;
  if(i === 0){
    i = Math.random();
  }
  return Math.random();
  // Only change code above this line
}

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help