random.range is used within other rangemodel functions to radomly place given number of species occurences
random.range(uid, nb, range.size, var, first)
a vector of unique ids for selection
a neighbour object similar to generated from 'shp2nb'
a vector of number of sites occupied by each species
an optional vector of variables for constraining the randomization
If true, var is used while choosing the first occurence as well. if var is null, first is always set FALSE
a numeric vector specifying selected possitions in 'uid'
this function is not intended for any direct use but is called within other functions of 'rangemodelR'.