Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Colored checkerboard' topicStudent Support Forum > General > Archives > "Colored checkerboard"

Next Comment >Help | Reply To Topic
Author Comment/Response
Savage
01/22/13 11:21am

Hello, I have a little problem. I want to make a colored checkerboard (10 * 10) and each of the square must be red, green, yellow or blue. I made it, but two squares can have the same colour, and I don't want that. What must I add ?

This is my code :

ArrayPlot[RandomChoice[{Red, Green, Blue, Yellow}, {10, 10}] ,
Frame -> False]

Thanks !

Attachment: colored.nb, URL: ,

Subject (listing for 'Colored checkerboard')
Author Date Posted
Colored checkerboard Savage 01/22/13 11:21am
Re: Colored checkerboard Bill Simpson 01/22/13 10:30pm
Re: Re: Colored checkerboard Savage 01/24/13 1:41pm
Re: Re: Re: Colored checkerboard Bill Simpson 01/24/13 10:41pm
Re: Colored checkerboard yehuda 01/23/13 06:46am
Re: Colored checkerboard Bill Simpson 01/25/13 3:25pm
Next Comment >Help | Reply To Topic