R/generate.uniform.random.R

"generate.uniform.random" <-
function(n=100, range=c(0,1)){
  x <- range[1] + stats::runif(n) * (range[2]-range[1]);
	y <- range[1] + stats::runif(n) * (range[2]-range[1]);
	M <- rbind(x,y);
	return(M);
}

Try the clusterv package in your browser

Any scripts or data that you put into this service are public.

clusterv documentation built on June 8, 2025, 10:21 a.m.