Initialize transitions randomly.