Buy article online - an online subscription or single-article purchase is required to access this article.
![a logo](https://journals.iucr.org/logos/jicons/a_36x36.png)
An algorithm is described which combines the magic integer concept with that of representing a large number of phases by random numbers. The process, called MAGEX89, is more economical than previous magic integer approaches and in a number of tests its performance compares favourably with those of other commonly used methods of solving small structures.