New answers tagged

0 votes

Selection sort on the array $\{5,9,11,10,2\}$

You are stopping the i loop too soon. You should try it again and keep track of the value of $i$ and keep in mind that in an array of length $n$, indices of the ...
Nathaniel's user avatar
  • 15.4k
1 vote

Are float pseudo-random number generators always implemented using integer generators underneath

My very very first computer that came with BASIC built-in, had a random number generator that replaced the previous value x with the fractional part of (x + pi)^5. It wasn’t very random. It had the ...
gnasher729's user avatar

Top 50 recent answers are included