> for (int i=r; ; i=(i+1)%M) That's assuming integers of sufficient precision to store M, obviously. Jill --------------------------------------------------------------------- The Cryptography Mailing List Unsubscribe by sending "unsubscribe cryptography" to majordomo at metzdowd.com