random spread calculation