Generate true of false with specifed probability -- Facebook