Top "Random-sample" questions

This tag is for questions pertaining to random numbers and their generators, whether pseudo-random or truly random.

Random Sample of a subset of a dataframe in Pandas

Say i have a dataframe with 100,000 entries and want to split it into 100 sections of 1000 entries. How do i take …

python pandas sample random-sample
pandas create a series with n elements (sequential or randbetween)

I am trying to create a pandas series. One column of the series should contain n sequential numbers. [1, 2, 3, ..., n] One …

python pandas dataframe series random-sample
R-How to generate random sample of a discrete random variables?

In R, I want to generate a random sample of a discrete random variable: X, where: P(X=a)=P(…

r binary-data random-sample
Randomly Pick Lines From a File Without Slurping It With Unix

I have a 10^7 lines file, in which I want to choose 1/100 of lines randomly from the file. This is the …

linux unix awk random-sample file-processing
Fixing set.seed for an entire session

I am using R to construct an agent based model with a monte carlo process. This means I got many …

r montecarlo random-sample agent-based-modeling
Generate a random sample of points distributed on the surface of a unit sphere

I am trying to generate random points on the surface of the sphere using numpy. I have reviewed the post …

python numpy geometry random-sample uniform-distribution
How to select random samples from a dataset in Matlab

Possible Duplicate: How do I randomly select k points from N points in MATLAB? Let's say I have a dataset …

matlab octave random-sample
Randomly sample a percentage of rows within a data frame

Related to this question. gender <- c("F", "M", "M", "F", "F", "M", "F", "F") age <- c(23, 25, 27, 29, 31, 33, 35, 37) …

r row subset random-sample
What does the integer while setting the seed mean?

I want to randomly select n rows from my data set using the sample() function in R. I was getting …

r random random-sample seeding
Can Random.nextgaussian() sample values from a distribution with different mean and standard deviation?

This is a combined Java and basic math question. The documentation from Random.nextGaussian() states that it samples from a …

java statistics gaussian random-sample