Typical considerations for assigning an IP address to a website by a hosting provider include -
- The geographic location of the website and desired connectivity to other servers will often determine the address range used.
- The loading of other websites on the system and class of service being provided. (It would be common to group and oversubscribe more cheaper customers onto a server then premium ones)
- The functionality of the server(s) - Different servers may have different functionality and each server will have (at least) 1 IP address.
To avoid sharing an IP address you would want to purchase a dedicated VM or server - which will have its own IP address. Of-course, this is often more expensive (less sharing of resources) and harder (more understanding of servers/server maintenance). Even then, a single IP address you do not share in an IP range/neighbourhood with bad players may be sub-optimal.
There is no easy way to absolutely assure your range is clean. Working with smaller, trustworthy providers who know their client base can sometimes help here - but often these providers are using cloud services and can't control the IP ranges.... Also, sometimes sites get hacked, and a good neighbour/website can suddenly look bad.
I came across https://www.ipqualityscore.com/ip-reputation-check - using a site like this may be useful in evaluating your IP addresses reputation.