0
$\begingroup$

How to write a function in Wolfram Mathematica that returns the values 0,1,2,3 in random order and draw a diagram for it as shown in the picture using the DensityPlot function. Help please!!enter image description here

$\endgroup$
2
  • 1
    $\begingroup$ Welcome to the Mathematica Stack Exchange. Try: RandomChoice[{1, 2, 3, 4}, 20] and use it in your post if required. I don't understand how this sequence will result in this density plot, so please elaborate. $\endgroup$
    – Syed
    May 1 at 6:58
  • $\begingroup$ Okey, Thank you! $\endgroup$ May 1 at 7:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.