The cipher's primary weakness comes from the fact that if the cryptanalyst can discover (by means of frequency analysis, brute force, guessing or otherwise) the plaintext of two ciphertext characters then the key can be obtained by solving a simultaneous equation.
The same type of transformation used in affine ciphers is used in linear congruential generators, a type of pseudorandom number generator.