GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing cpppatterns.com — Choose a random element - C++ Patterns
← Patterns
Choose a random element
This pattern is licensed under the CC0 Public Domain Dedication.
Requires
c++11
or newer.
IntentChoose a random element from a container. DescriptionOn line 6, we create a We then effectively roll a die
where the numbers on the die are the indices of elements in the
container. That is, we seed the
On line 12, we call Share | ||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |