This function generates random points within a geographic area set as either sp::SpatialPolygons or raster::RasterLayer.
RPG(rpopn, boundary, year = "anyYear", SP)
total number of random points to be generated.
either a RasterLayer object (0: inside; >= 1: outside) or a SpatialPolygon(s) object.
year name (used by wrapper function simulacro() to lable consecutive time steps in its simulate time series).
name of the species being simulated for labelling the output.
data frame of random points.