nick coghlan uytankmfgmailcom triangular def triangularself low high mode triangular distribution continuous distribution bounded given lower upper limits given mode value inbetween httpenwikipediaorgwikitriangular_distribution u selfrandom c mode low high low u c u 1 u c 1 c low high high low return low high low u c 05 would worth default values parameters def triangularself low0 high1 modenone u selfrandom mode none c 05 else c mode low high low u c u 1 u c 1 c low high high low return low high low u c 05 least supporting modenone would convenient want symmetric triangular distribution calculate median pass mode function reverse get 05 seems little wasteful cheers nick nick coghlan uytankmfgmailcom brisbane australia httpwwwboredomandlazinessorg _______________________________________________ pythondev mailing list zvlllneumpythonorg httpmailpythonorgmailmanlistinfopythondev unsubscribe httpmailpythonorgmailmanoptionspythondevpythondev40tangomucom thu 07 aug 2008 065748 1000 pythondev pythoncheckins r61796 pythontrunk doclibraryrandomrst librandompy libtesttest_randompy miscnews