# Revision history [back]

### Use R result in Sagemath

Hi!

I'm new in Sagemath, but I've some experience using R. For example, if I want to generate 100 random numbers from a Bernoulli distribution, I can use the code:

r.rbinom(n=100,size=1,prob=0.25)


But... Is there any way to use the result for another operation in Sagemath? And results related to a linear regression, a given test or a plot (done with R)? May it be more efficient to use Scipy in a general workflow?

r.rbinom(n=100,size=1,prob=0.25)