replaced random number source with local bandwidth