Skip to main content
added 45 characters in body
Source Link

R, 38

library(Rmpfr)
round(rnorm(1,1e6*sample(c(1,-1),1)2e6,1e6))

Draws from the Gaussian distribution with mean -1,000,000 or 12,000,000, chosen randomly, and standard deviation 1,000,000, so that about 2/3 of the draws will lie within 1,000,000 and 3,000,000. The distribution is unbounded so in theory this can generate any integer. The Rmpfr package replaces R's built in double floats with arbitrary precision,.

R,

library(Rmpfr)
round(rnorm(1,1e6*sample(c(1,-1),1),1e6))

Draws from the Gaussian distribution with mean -1,000,000 or 1,000,000, chosen randomly, and standard deviation 1,000,000. The distribution is unbounded so in theory this can generate any integer. The Rmpfr package replaces R's built in double floats with arbitrary precision,

R, 38

library(Rmpfr)
round(rnorm(1,2e6,1e6))

Draws from the Gaussian distribution with mean 2,000,000, chosen randomly, and standard deviation 1,000,000, so that about 2/3 of the draws will lie within 1,000,000 and 3,000,000. The distribution is unbounded so in theory this can generate any integer. The Rmpfr package replaces R's built in double floats with arbitrary precision.

added 112 characters in body
Source Link

R,

library(Rmpfr)
round(rnorm(1,1e6*sample(c(1,-1),1),1e6))

Draws from the Gaussian distribution with mean -1,000,000 or 1,000,000, chosen randomly, and variancestandard deviation 1,000,000. The distribution is also unbounded so in theory this can generate any integer. The Rmpfr package replaces R's built in double floats with arbitrary precision,

R,

round(rnorm(1,1e6*sample(c(1,-1),1),1e6))

Draws from the Gaussian distribution with mean -1,000,000 or 1,000,000, chosen randomly, and variance 1. The distribution is also unbounded so in theory this can generate any integer.

R,

library(Rmpfr)
round(rnorm(1,1e6*sample(c(1,-1),1),1e6))

Draws from the Gaussian distribution with mean -1,000,000 or 1,000,000, chosen randomly, and standard deviation 1,000,000. The distribution is unbounded so in theory this can generate any integer. The Rmpfr package replaces R's built in double floats with arbitrary precision,

deleted 75 characters in body; added 5 characters in body
Source Link

R, 18

round(rnorm(1,1e6*sample(c(1,2e6-1),1),1e6))

Draws from the Gaussian distribution with mean 0 and standard deviation of 2-1,000,000. The Gaussian distribution has about a 67% chance of drawing a number within a standard deviation from zero or 1,000,000, chosen randomly, and variance 1. The distribution is also unbounded so in theory this can generate any integer.

R, 18

round(rnorm(1,,2e6))

Draws from the Gaussian distribution with mean 0 and standard deviation of 2,000,000. The Gaussian distribution has about a 67% chance of drawing a number within a standard deviation from zero. The distribution is also unbounded so in theory this can generate any integer.

R,

round(rnorm(1,1e6*sample(c(1,-1),1),1e6))

Draws from the Gaussian distribution with mean -1,000,000 or 1,000,000, chosen randomly, and variance 1. The distribution is also unbounded so in theory this can generate any integer.

Source Link
Loading