January 28, 2008 Announce » Re: Shuffle | |||
|---|---|---|---|
| |||
...body should then be something like
buf.swap( n, n + Rand(buf.length - n) );
(assuming... | |||
January 26, 2008 Announce » Re: Shuffle | |||
|---|---|---|---|
| |||
...r % (n + 1); // pick element to swap with // swap [n] and [j] auto tmp = files... | |||
January 25, 2008 Announce » Re: Shuffle | |||
|---|---|---|---|
| |||
...remember reading a criticism of the shuffle/swap algorithm and the fix a while back... | |||
January 25, 2008 Announce » Re: Shuffle | |||
|---|---|---|---|
| |||
...auto j = std.random.rand() % files.length; // swap [i] and [j] auto tmp = files[i... | |||
January 02, 2008 General » Re: Hmm - about manifest/enum | |||
|---|---|---|---|
| |||
...myarray; you should not be able to swap members. But there should still be a... | |||
December 31, 2007 General » Re: Hmm - about manifest/enum | |||
|---|---|---|---|
| |||
...array of const classes? const(C)[] myarray; ... // swap two items i and j auto tmp... | |||
December 29, 2007 Announce » Re: Kong - hooking package. | |||
|---|---|---|---|
| |||
...project to allow the software to hot-swap its core (no file backing/locking and... | |||
December 18, 2007 c++.stlsoft » STLSoft 1.9.12 released | |||
|---|---|---|---|
| |||
...all 4 classes + stlsoft::fixed_array_?d::swap() methods for all 4 classes Fixes: ====== STLSoft... | |||
December 16, 2007 c++.stlsoft » Re: [stlsoft][fixed_array_1d<>] size overhead | |||
|---|---|---|---|
| |||
...and swap() methods, and have done almost the same things as you for swap(). :-) These... | |||
December 16, 2007 c++.stlsoft » Re: [stlsoft][fixed_array_1d<>] size overhead | |||
|---|---|---|---|
| |||
My implementation of swap was buggy, although I couldn't quite figure out where it... | |||
Copyright © 1999-2021 by the D Language Foundation