pauldreik / random_foreach

code for randomly generating all numbers in a range exactly once
Boost Software License 1.0
3 stars 0 forks source link

Add strategy using triangular numbers #1

Open pauldreik opened 4 years ago

pauldreik commented 4 years ago

Someone came up to me after the talk and suggested triangular numbers. Very interesting! Here is a link saying they touch each value exactly once:

https://fgiesen.wordpress.com/2015/02/22/triangular-numbers-mod-2n/