// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) fieldsfirst 
// Source File Name:   SingleGeneMutation.java

package drm.genetics.simple;

import drm.genetics.*;
import java.util.Random;

public class SingleGeneMutation extends AbstractMutation
{

	public SingleGeneMutation()
	{
	}

	public void mutateSame(Individual individ)
	{
		drm.genetics.Gene genom[] = individ.accessGenome();
		int nr = (int)((double)genom.length * random.nextDouble());
		if(nr >= genom.length)
			nr = 0;
		((Inversible)genom[nr]).inverse();
	}
}
