Home
last modified time | relevance | path

Searched refs:randomPos (Results 1 – 22 of 22) sorted by relevance

/dports/audio/rhvoice/RHVoice-1.2.4/src/third-party/cldr/tools/java/org/unicode/cldr/draft/
H A DGapStringTest.java25 int randomPos = random.nextInt(b.length() + 1); in TestCorrectness() local
29 int randomEnd = randomPos + random.nextInt(b.length() - randomPos + 1); in TestCorrectness()
30 b.delete(randomPos, randomEnd); in TestCorrectness()
31 a.delete(randomPos, randomEnd); in TestCorrectness()
36 b.insert(randomPos, randomChar); in TestCorrectness()
37 a.insert(randomPos, randomChar); in TestCorrectness()
42 b.insert(randomPos, randomString); in TestCorrectness()
43 a.insert(randomPos, randomString); in TestCorrectness()
48 b.insert(randomPos, randomStringBuffer); in TestCorrectness()
49 a.insert(randomPos, randomStringBuffer); in TestCorrectness()
/dports/games/ufoai/ufoai-2.5-source/src/client/cgame/campaign/
H A Dcp_alienbase.cpp44 vec2_t randomPos; in AB_SetAlienBasePosition() local
53 CP_GetRandomPosOnGeoscape(randomPos, true); in AB_SetAlienBasePosition()
56 if (GEO_PositionCloseToBase(randomPos)) in AB_SetAlienBasePosition()
61 Vector2Copy(randomPos, pos); in AB_SetAlienBasePosition()
67 const float currentDistance = GetDistanceOnGlobe(base->pos, randomPos); in AB_SetAlienBasePosition()
75 Vector2Copy(randomPos, pos); in AB_SetAlienBasePosition()
82 Vector2Copy(randomPos, pos); in AB_SetAlienBasePosition()
/dports/games/endless-sky/endless-sky-0.9.14/source/
H A DShipyardPanel.cpp54 randomPos = cancelPos - Point(80., 0.); in Draw()
55 SpriteShader::Draw(SpriteSet::Get("ui/dialog cancel"), randomPos); in Draw()
59 Point labelPos = randomPos - .5 * Point(font.Width(label), font.Height()); in Draw()
66 Point off = Point(x, y) - randomPos; in Click()
76 Point randomPos; member in __anon9ec74a040111::NameDialog
/dports/devel/fpc-fcl-base/fpc-3.2.2/packages/fcl-base/examples/
H A Dbase64decodingtestcase.pas121 randomPos: Integer;
126 randomPos:=Random(Length(s))+1;
127 c:=s[randomPos];
128 s[randomPos]:=s[i];
/dports/lang/fpc/fpc-3.2.2/packages/fcl-base/examples/
H A Dbase64decodingtestcase.pas121 randomPos: Integer;
126 randomPos:=Random(Length(s))+1;
127 c:=s[randomPos];
128 s[randomPos]:=s[i];
/dports/lang/fpc-source/fpc-3.2.2/packages/fcl-base/examples/
H A Dbase64decodingtestcase.pas121 randomPos: Integer;
126 randomPos:=Random(Length(s))+1;
127 c:=s[randomPos];
128 s[randomPos]:=s[i];
/dports/games/kpat/kpat-21.12.3/src/
H A Dspider.cpp341 addCardForDeal( stack[column], cardList.takeLast(), m_stackFaceup == 1, randomPos() ); in restart()
347 addCardForDeal( stack[column], cardList.takeLast(), true, randomPos() ); in restart()
353 addCardForDeal( redeals[column], cardList.takeLast(), false, randomPos() ); in restart()
413 QPointF Spider::randomPos() in randomPos() function in Spider
H A Dspider.h79 QPointF randomPos();
/dports/math/ogdf/OGDF/src/ogdf/energybased/
H A DDavidsonHarel.cpp152 int randomPos = randomNumber(0,m_nonIsolatedNodes.size()-1); in computeCandidateLayout() local
153 node v = *(m_nonIsolatedNodes.get(randomPos)); in computeCandidateLayout()
/dports/games/xtriangles/xtriangles/
H A DTriangles.c992 int currentPos, randomPos, randomRow; in RandomizeTiles() local
997 randomPos = currentPos; in RandomizeTiles()
998 while (currentPos == randomPos || currentOrient != randomOrient) { in RandomizeTiles()
999 randomPos = NRAND(w->triangles.sizeSize); in RandomizeTiles()
1000 randomRow = Row(randomPos); in RandomizeTiles()
1001 randomOrient = !((randomRow + TrBl(randomPos, randomRow) / 2 + in RandomizeTiles()
1002 TlBr(randomPos, randomRow) / 2) % 2); in RandomizeTiles()
1004 (void) ExchangeTiles(w, currentPos, randomPos); in RandomizeTiles()
/dports/games/chessx/chessx-1.5.6/src/gui/
H A Danalysiswidget.cpp413 int randomPos = rand() % games; in sendBookMoveTimeout() local
416 randomPos -= moveList.at(i).results.count(); in sendBookMoveTimeout()
417 if (randomPos<0) in sendBookMoveTimeout()
H A Dboardsetup.cpp149 int randomPos = rand() % 960; in chess960randomPos() local
150 ui.chess960pos->setValue(randomPos); in chess960randomPos()
/dports/games/cdogs-sdl/cdogs-sdl-1.0.1/src/cdogs/
H A Dmap_build.h134 const bool randomPos,
H A Dmap_build.c1069 …roomDim, const struct vec2i doorStart, const struct vec2i d, const bool randomPos, const TileClass…
1072 const int doorMin, const int doorMax, const uint16_t accessMask, const bool randomPos, in MapPlaceDoors() argument
1120 PlaceDoors(mb, doorSize, roomDim, doorStart, d, randomPos, tile); in MapPlaceDoors()
1126 …roomDim, const struct vec2i doorStart, const struct vec2i d, const bool randomPos, const TileClass… in PlaceDoors() argument
1131 if (randomPos) in PlaceDoors()
/dports/games/bzflag-server/bzflag-2.4.22/src/bzfs/
H A DbzfsAPI.cxx3298 BZF_API void bz_getRandomPoint ( bz_CustomZoneObject *obj, float *randomPos ) in bz_getRandomPoint() argument
3325 randomPos[0] = ((x * cos_val) - (y * sin_val)) + pos[0]; in bz_getRandomPoint()
3326 randomPos[1] = ((x * sin_val) + (y * cos_val)) + pos[1]; in bz_getRandomPoint()
3327 randomPos[2] = pos[2]; in bz_getRandomPoint()
3336 randomPos[0] = (obj->radius * x) + pos[0]; in bz_getRandomPoint()
3337 randomPos[1] = (obj->radius * y) + pos[1]; in bz_getRandomPoint()
3338 randomPos[2] = pos[2]; in bz_getRandomPoint()
3342 BZF_API bool bz_getSpawnPointWithin ( bz_CustomZoneObject *obj, float randomPos[3] ) in bz_getSpawnPointWithin()
3357 bz_getRandomPoint(obj, randomPos); in bz_getSpawnPointWithin()
3361 !DropGeometry::dropPlayer(randomPos, obj->zMin, obj->zMax) || in bz_getSpawnPointWithin()
[all …]
/dports/games/bzflag/bzflag-2.4.22/src/bzfs/
H A DbzfsAPI.cxx3298 BZF_API void bz_getRandomPoint ( bz_CustomZoneObject *obj, float *randomPos ) in bz_getRandomPoint() argument
3325 randomPos[0] = ((x * cos_val) - (y * sin_val)) + pos[0]; in bz_getRandomPoint()
3326 randomPos[1] = ((x * sin_val) + (y * cos_val)) + pos[1]; in bz_getRandomPoint()
3327 randomPos[2] = pos[2]; in bz_getRandomPoint()
3336 randomPos[0] = (obj->radius * x) + pos[0]; in bz_getRandomPoint()
3337 randomPos[1] = (obj->radius * y) + pos[1]; in bz_getRandomPoint()
3338 randomPos[2] = pos[2]; in bz_getRandomPoint()
3342 BZF_API bool bz_getSpawnPointWithin ( bz_CustomZoneObject *obj, float randomPos[3] ) in bz_getSpawnPointWithin()
3357 bz_getRandomPoint(obj, randomPos); in bz_getSpawnPointWithin()
3361 !DropGeometry::dropPlayer(randomPos, obj->zMin, obj->zMax) || in bz_getSpawnPointWithin()
[all …]
/dports/games/xcubes/xcubes/
H A DCubes.c1015 int randomPos = pos; in RandomizeBricks() local
1017 while (randomPos == pos) in RandomizeBricks()
1018 randomPos = NRAND(w->cubes.sizeBlock); in RandomizeBricks()
1019 count += ExchangeBricks(w, pos, randomPos); in RandomizeBricks()
/dports/games/xhexagons/xhexagons/
H A DHexagons.c1193 int currentPos, randomPos; in RandomizeTiles() local
1197 randomPos = currentPos; in RandomizeTiles()
1198 while (currentPos == randomPos) in RandomizeTiles()
1199 randomPos = NRAND(w->hexagons.sizeSize); in RandomizeTiles()
1200 count += ExchangeTiles(w, currentPos, randomPos); in RandomizeTiles()
/dports/games/xmlink/xmlink/
H A DMlink.c993 int randomPos = pos; in RandomizeTiles() local
995 while (randomPos == pos) in RandomizeTiles()
996 randomPos = NRAND(w->mlink.tileFaces); in RandomizeTiles()
997 count += ExchangeTiles(w, pos, randomPos); in RandomizeTiles()
/dports/devel/juce/JUCE-f37e9a1/extras/Projucer/Source/ComponentEditor/PaintElements/
H A Djucer_PaintElementPath.cpp140 static int randomPos (int size) in randomPos() function
149 int x = randomPos (w); in setInitialBounds()
150 int y = randomPos (h); in setInitialBounds()
/dports/games/bzflag-server/bzflag-2.4.22/include/
H A DbzfsAPI.h2010 BZF_API void bz_getRandomPoint ( bz_CustomZoneObject *obj, float *randomPos );
2011 BZF_API bool bz_getSpawnPointWithin ( bz_CustomZoneObject *obj, float randomPos[3] );
/dports/games/bzflag/bzflag-2.4.22/include/
H A DbzfsAPI.h2010 BZF_API void bz_getRandomPoint ( bz_CustomZoneObject *obj, float *randomPos );
2011 BZF_API bool bz_getSpawnPointWithin ( bz_CustomZoneObject *obj, float randomPos[3] );