summaryrefslogtreecommitdiff
path: root/numpy/random/tests/test_random.py
blob: 8f78420853a894a4e9a2ede3fe39ca79cdcdf282 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from numpy.testing import *
from numpy import random
import numpy as N

class test_multinomial(NumpyTestCase):
    def test_basic(self):
        random.multinomial(100, [0.2, 0.8])

    def test_zero_probability(self):
        random.multinomial(100, [0.2, 0.8, 0.0, 0.0, 0.0])

if __name__ == "__main__":
    NumpyTest().run()