klocey / partitions

python based code for integer partitioning
4 stars 4 forks source link

rename which to rand_int #6

Closed dmcglinn closed 11 years ago

dmcglinn commented 11 years ago

Do you feel strongly about the name you assigned to the object 'which'?

This name is not very informative and could be initially confused as a function. Some languages like R use the function which() to return the indices of a vector that are True. The name rand_int better communicates that which is just a random integer value. If you agree I'll make the changes.

klocey commented 11 years ago

'rand_int' sounds fine. Make the changes you like, so long as they don't change how the algorithms work, and I'll pull them in.