creation of a function to switch between a preassigned vector of odds and to generate a new odd