%% with this last version, it is working, but the numbers don<t
%%go to the next line
for i = 1:1:10
T = randi([0 10],1,1); % random number between 0 and 10
R = num2str(T);
handles.list(i)= R;
end
set(handles.listbox1,'String',handles.list)
%%the new numbers don<t go to the next line.