I want to take the simple example code and assign a unique rand() to each variable -- on one line:
X = rand();
Y = rand();
possible?
I want to take the simple example code and assign a unique rand() to each variable -- on one line:
X = rand();
Y = rand();
possible?
If you absolutely want it in a single line, you can do:
[X, Y] = deal(rand(), rand());
Not a big gain, though.