If this is your script you probably get a syntax error because you're missing a dot between ("spawnpoint") and transform.position.
Also instead of searching for the object named spawnpoint it would be a good idea to save a reference to the spawnpoint. (like you did for the prefab)
If you want to spawn at random position look into Random.insideUnitCircle.