[BioC] random number->random integer

Sean Davis sdavis2 at mail.nih.gov
Thu Nov 30 01:11:40 CET 2006


D.Enrique ESCOBAR ESPINOZA wrote:
> Hi
> I want to generate a random integer from 1 to 654,
> is there any function that can provide a random real between 0&1
> [0,1]
> that I can multiply by 654 and perform the ceiling() or floor() to
> get an integer from that?
>   
runif()

Sean



More information about the Bioconductor mailing list