0
Zoltán Király Posted 6 years ago
Grammar

Is my text correctly spelled?

Here's the text:
The 'shuffle' function takes an array and returns a new array of the same size but with its elements randomly sorted.


More details: I'm talking about arrays in computer programming. The input array is [a, b, c, d, e] and the output is [b, a, e, d, c].

  

Top answer

Yes, that's OK

  • Yes, that's OK
Free · every Monday

Get the Weekly English Kit 📬

New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.

2 Answers
0

The spelling is fine, but I would not use "sorted."


The 'shuffle' function takes an array and returns a new array of the same size but with its elements in a random order.

Related Questions