Each of 15 cocaine-dependent participants first completed a qualifying session to ensure that intranasal cocaine functioned as a reinforcer , then completed a 10-session , within-subject , randomized crossover study .