Nicol�s,

Una forma es utilizando ?runif y ?trunc como sigue:

n <- 20
runif(n, 0, 4)
trunc(runif(n, 0, 4))

Saludos,
Jorge.-



2014-10-28 23:11 GMT+11:00 Nicol�s Corral G�mez <n.corra...@hotmail.com>:

> Hola quisiera saber de que manera puedo generar numeros aleatorios enteros
> entre 0 y 4, para completar una matriz de un automata celular
> Muchas gracias
> Juan Nicol�s Corral G�mezEstudiante Carrera de Ecolog�aPontificia
> Universidad Javeriana
>         [[alternative HTML version deleted]]
>
>
> _______________________________________________
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>
>

        [[alternative HTML version deleted]]

_______________________________________________
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es

Responder a