entero aleatorio en r

random_x <- sample(1:10, 1)

# or

random_10x = sample(-1:1, size = 10, replace = T)
Rocku0