Hello everyone I'm kinda new to RStudio and there's something I don't understand.

How can this code work:

simu<-function(t){

u<-runif(1,0,1)

return(1-sqrt(u))

}

There is no "t" anywhere in my function but it still works, so because it confused me I tried to run this instead:

simu2<-function(t){

u<-runif(1,0,1)

return(u)

}

And again it worked, so I guess I don't understand clearly what runif does, is it actually a function ? I thought it could only generates random number that follow a uniform law.

Thx in advance