function _randomIndex (min, max, index) {
  const i = Math.floor(Math.random() * (max - min) + min)
  // console.log('i', i, index, i === index, min, max)
  if (i === index) {
    if (i > max / 2) {
      max = max / 2
    } else {
      min = max / 2
    }
    return max - min > 2 ? _randomIndex(min, max, index) : i
  } else {
    return i
  }
}
@typedef {{
  offline?: boolean,
  abCycle?: { IABCycle } | null,
  timeScale?: number,
  mode?: 'order' | 'sloop' | 'loop' | 'random',
  list?: Array<IMusicListItem>,
  [propName: string]: any
}} IMusicConfig