Interview Query

Gaussian Generation

0
Have you seen this question before?

Given two parameters, a size n, a mean mu and sigma sigma write a function to generate a gaussian distribution. 

Example:

Input:

n = 9
mu = 3
sigma = 1

Output:

def generate_distribution(n, mu , sigma) -> [1,2,2,3,3,3,4,4,5]
Next question: Game Feature Home
.....
Python 3.9.6
Loading editor
Use Shift + Enter to run code