Assume that genes A and B are not linked. If the probability of allele A in a gamete is 1/2 and the probability of allele B in a gamete is 1/2, then the probability that both A and B are in the same gamete is