I would like to pick a number randomly between 1-100 such that the probability of getting numbers 60-100 is higher than 1-59.

I would like to have the probability to be a left-skewed distribution for numbers 1-100. That is to say, it has a long tail and a peak.

Something along the lines:

```pers = np.arange(1,101,1)
prob = <left-skewed distribution>
number = np.random.choice(pers, 1, p=prob)
```

I do not know how to generate a left-skewed discrete probability function. Any ideas? Thanks!

Mar 25, 2022 996 views

## Random numbers with user-defined continuous probability distribution

You can use the rejection sampling approach ...READ MORE

## Simple algorithm for generating random numbers with bigger/smaller probability

To move the density in one way, ...READ MORE

+1 vote

## valueerror: found input variables with inconsistent numbers of samples: [40, 10]

keep random_state =42 in train_test_split module READ MORE

## how do i change string to a list?

suppose you have a string with a ...READ MORE

## how can i randomly select items from a list?

You can also use the random library's ...READ MORE

+1 vote