generateRandomSteps = k =>
  Array(k)
    .fill(0)
    .map(_ => Math.random() / 2)
    .reduce((acc, val, idx) => [...acc, acc[idx] + (1 - acc[idx]) * val], [0])
    .slice(0, -1)
    .concat([1])
generate k random steps within the domain of [0, 1]

@param {Number} k: number of steps
@return a list of krandom steps of length k + 1 [0, 0.25, 0.34, 0.78, ..., 1]