I need to make a dice with riged odds and plot the results in a bar chart. The dice and the riged odds part gives me the result im seeking, but i dont know how to convert these anwsers into a bar chart seeming my x- values keeps on changing value.

`clc, clear allfor index=(1:1000) x=randi([1,13]);if x==1 x=5 elseif 2<=x && x<=5 x=randi([1,2])elseif 6<=x && x<=7 x=4elseif 8<=x && x<=9 x=6elseif 10<=x && x<=13 x=3endend`

Thanks

## Best Answer