image thumbnail

Random Latin square

version 1.0.2 (2.63 KB) by Jakub Wagner
Generate a uniformly distributed random Latin square of given order.

38 Downloads

Updated Thu, 08 Jul 2021 13:31:35 +0000

View License

An implementation of the Markov chain Monte Carlo algorithm for generating random Latin squares of arbitrary order with approximately uniform distribution, proposed by Jacobson & Matthews:
M. Jacobson, P. Matthews, "Generating uniformly distributed random Latin squares", Journal of Combinatorial Designs, vol. 4, no. 6, pp. 405-437, 1996.
This implementation is based on:
I. Gallego Sagastume, "Generation of random latin squares step by step and graphically", XX Congreso Argentino de Ciencias de la Computación, Buenos Aires, 2014.

Cite As

Jakub Wagner (2022). Random Latin square (https://www.mathworks.com/matlabcentral/fileexchange/79200-random-latin-square), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!