In [1]:
import cv2
import numpy as np
import random

The code below illustrates how we can obtain 2 random numbers from uniform distribution.

In [2]:
a = np.random.uniform(0,1)
b = np.random.uniform(0,1)

print(' a: ',a,'\n','b: ',b)
 a:  0.70255326588523 
 b:  0.6538578079285834

In the similar manner we can get two random numbers from a normal distribution

In [3]:
a = np.random.normal(0,1)
b = np.random.normal(0,1)

print(' a: ',a,'\n','b: ',b)
 a:  1.2608256917730272 
 b:  -0.6715519588359672