def _create_rand_fdist(numsamples, numoutcomes):
 import random
 fdist = FreqDist()
 for x in range(numoutcomes):
  y = (random.randint(1, ((1 + numsamples) // 2)) + random.randint(0, (numsamples // 2)))
  fdist[y] += 1
 return fdist

def _create_rand_fdist ( numsamples , numoutcomes ) : import random fdist = FreqDist ( ) for x in range ( numoutcomes ) : y = ( random . randint ( 1 , ( ( 1 + numsamples ) // 2 ) ) + random . randint ( 0 , ( numsamples // 2 ) ) ) fdist [ y ] += 1 return fdist
create a new frequency distribution .