You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As currently written, the students starts with std::generate, which is complex because
of the need of some internal persistent state. Several solutions:
find another generation algorithm which do not require internal state.
why not directly random values ?
move it as intermediary/advanced later step.
By the way, I strongly disagree with the current solution, based on an object-function class. You will frigthen beginners and let them think that the good old code is better ! It is far from perfect, but one can avoid this with an internal static int, or capture by reference an external int.
The text was updated successfully, but these errors were encountered:
This issue or pull request has been automatically marked as stale because it has not had recent activity. Please manually close it, if it is no longer relevant, or ask for help or support to help getting it unstuck. Let me bring this to the attention of @klieret@wdconinc@michmx for now.
As currently written, the students starts with std::generate, which is complex because
of the need of some internal persistent state. Several solutions:
why not directly random values ?
By the way, I strongly disagree with the current solution, based on an object-function class. You will frigthen beginners and let them think that the good old code is better ! It is far from perfect, but one can avoid this with an internal static int, or capture by reference an external int.
The text was updated successfully, but these errors were encountered: