/* 1 0 flip a coin, return 0 or 1 */ double nf_flip(const Node *n, const Cell *c) { return (rand()/(RAND_MAX+1.0)) < 0.5; }