Changeset 3582:e12da3821240 in orange
 Timestamp:
 04/24/07 23:18:35 (7 years ago)
 Branch:
 default
 Convert:
 373a299f72a5c8581c5dccb3436afb7d31350ada
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

source/orange/distvars.cpp
r2547 r3582 871 871 { 872 872 float ri = (random & 0x7fffffff) / float(0x7fffffff); 873 if (!abs  !size()) 874 raiseError("cannot return a random element of an empty distribution"); 875 ri = fmod(ri, abs); 873 876 const_iterator di(begin()); 874 877 while (ri > *di) … … 880 883 int TDiscDistribution::randomInt() 881 884 { 885 if (!abs  !size()) 886 raiseError("cannot return a random element of an empty distribution"); 887 882 888 if (!randomGenerator) 883 889 randomGenerator = mlnew TRandomGenerator;
Note: See TracChangeset
for help on using the changeset viewer.