4 ms·
How is that very readable? In Julia, this will pick a random value from an array: rand([3, 4, 5, 1]) While this picks a value from a range: rand(1:10) Much m
by socialdemocrat 6y ago
How is that very readable?
In Julia, this will pick a random value from an array:
rand([3, 4, 5, 1])
While this picks a value from a range:
rand(1:10)
Much more straightforward to read IMHO. Where I prefer 0-based index is when dealing with coordinate systems and memory locations.