random.area.R contains R code for a randomization test that continuously selects sample units randomly until the total area of the selected unit exceeds a given threshold. The code may be called from an R program as an external function, or it may be placed in-line within an R program.