3 lines
No EOL
49 B
Matlab
3 lines
No EOL
49 B
Matlab
function y = rnd(x)
|
|
y = double(x>rand());
|
|
end |