The sleep spell description says:
Casting Time: 1 action
Range: 90 feet
Creatures within 20 feet of a point you choose within range are affected... (Basic Rules p. 101)
Why is the radius only 20 feet if the range is 90 feet?
Role-playing Games Stack Exchange is a question and answer site for gamemasters and players of tabletop, paper-and-pencil role-playing games. It only takes a minute to sign up.Sign up to join this community
The range indicates how far you can target the centre point of the area of effect. The area of effect has its own range of 20' meaning any creature within that radius can be affected.
In the image below, all the blue circles are valid areas of effect. But the orange circle is centred outside the 90' range and so is invalid.
The spell's range is defining where you can originate the area of effect for the spell. Similar to how fireball has a radius of 20' within a range of 150'.
From the Range section on page 202 of the PHB, "The target of a spell must be within the spell's range...For a spell like fireball, the target is the point in space where the ball of fire erupts."