awk -v min=-2 -v max=1 '
  BEGIN{
    srand()
    x = min + rand() * (max - min + 1)
    x -= x < 0
    print int(x)
  }'

