qt6-bb10/examples/widgets/doc/src
Thiago Macieira 19b0ce5daa Change almost all other uses of qrand() to QRandomGenerator
The vast majority is actually switched to QRandomGenerator::bounded(),
which gives a mostly uniform distribution over the [0, bound)
range. There are very few floating point cases left, as many of those
that did use floating point did not need to, after all. (I did leave
some that were too ugly for me to understand)

This commit also found a couple of calls to rand() instead of qrand().

This commit does not include changes to SSL code that continues to use
qrand() (job for someone else):
  src/network/ssl/qsslkey_qt.cpp
  src/network/ssl/qsslsocket_mac.cpp
  tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp

Change-Id: Icd0e0d4b27cb4e5eb892fffd14b5285d43f4afbf
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2017-11-08 09:14:03 +00:00
..
addressbook-tutorial.qdoc Doc: Add list with widgets examples using layouts 2017-07-03 11:51:23 +00:00
addressbook.qdoc Address Book example: Correctly update "Edit entry" and "Remove entry" actions 2017-10-23 14:38:22 +00:00
affine.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
analogclock.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
animatedtiles.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
appchooser.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
application.qdoc Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-13 01:05:02 +02:00
basicdrawing.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
basicgraphicslayouts.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
basiclayouts.qdoc Doc: minor language edits 2017-09-29 08:52:59 +00:00
basicsortfiltermodel.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
blurpicker.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
borderlayout.qdoc Doc: Add list with widgets examples using layouts 2017-07-03 11:51:23 +00:00
boxes.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
calculator.qdoc Doc: Add list with widgets examples using layouts 2017-07-03 11:51:23 +00:00
calendar.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
calendarwidget.qdoc Doc: minor corrections doc Calendar Widget Example 2017-09-29 08:52:34 +00:00
charactermap.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
chart.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
chip.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
classwizard.qdoc Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-13 01:05:02 +02:00
codeeditor.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
collidingmice-example.qdoc Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
coloreditorfactory.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
combowidgetmapper.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
completer.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
composition.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
concentriccircles.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
configdialog.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
customsortfiltermodel.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
deform.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
diagramscene.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
digitalclock.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
dirview.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
dockwidgets.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
draganddroppuzzle.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
dragdroprobot.qdoc Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
draggableicons.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
draggabletext.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
dynamiclayouts.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
easing.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
echoplugin.qdoc Doc: Add list with widgets examples using layouts 2017-07-03 11:51:23 +00:00
editabletreemodel.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
elasticnodes.qdoc Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
elidedlabel.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
embeddeddialogs.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
eventtransitions.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
extension.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
factorial.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
fademessage.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
fetchmore.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
findfiles.qdoc Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-05 08:58:48 +02:00
flowlayout.qdoc Doc: Add list with widgets examples using layouts 2017-07-03 11:51:23 +00:00
fontsampler.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
fridgemagnets.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
frozencolumn.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
gradients.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
graphicsview-anchorlayout.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
graphicsview-flowlayout.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
graphicsview-simpleanchorlayout.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
graphicsview-weatheranchorlayout.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
groupbox.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
i18n.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
icons.qdoc Doc: Replace "Macintosh" with something suitable or omit it 2017-05-23 13:02:33 +00:00
imagecomposition.qdoc Doc: Add list with widgets examples using layouts 2017-07-03 11:51:23 +00:00
imageviewer.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
interview.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
itemviewspuzzle.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
licensewizard.qdoc Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-13 01:05:02 +02:00
lighting.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
lineedits.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
mainwindow.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
mdi.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
menus.qdoc Doc: Add list with widgets examples using layouts 2017-07-03 11:51:23 +00:00
moveblocks.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
movie.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
orderform.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
padnavigator.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
painterpaths.qdoc Be (somewhat more) consistent about the value of pi 2017-06-20 09:53:46 +00:00
pathstroke.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
pingpong.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
pixelator.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
plugandpaint.qdoc Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-13 01:05:02 +02:00
regexp.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
regularexpression.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
rogue.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
screenshot.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
scribble.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
sdi.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
settingseditor.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
shapedclock.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
simpledommodel.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
simpletreemodel.qdoc Doc: Add list with widgets examples using layouts 2017-07-03 11:51:23 +00:00
simplewidgetmapper.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
sliders.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
spinboxdelegate.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
spinboxes.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
spreadsheet.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
standarddialogs.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
stardelegate.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
states.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
stickman.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
styleplugin.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
styles.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
stylesheet.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
sub-attaq.qdoc Doc: Add list with widgets examples using layouts 2017-07-03 11:51:23 +00:00
syntaxhighlighter.qdoc Doc: updated QSyntaxHighlighter documentation and use QRegularExpression 2017-04-12 22:09:43 +00:00
tabdialog.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
tablet.qdoc tablet example: enable high-DPI rendering 2017-05-15 20:49:12 +00:00
tetrix.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
textedit.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
tooltips.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
trafficlight.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
transformations.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
treemodelcompleter.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
trivialwizard.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
twowaybutton.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
undo.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
undoframework.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
validators.qdoc Unify license header usage. 2016-03-29 10:20:03 +00:00
wiggly.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00
windowflags.qdoc Doc: update Qt Widgets examples 2016-12-12 14:43:02 +00:00