This website works better with JavaScript.
Home
Explore
Help
Sign In
Archivist
/
raylib-src
mirror of
https://github.com/raysan5/raylib
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
24
Wiki
Activity
Browse Source
FIX: `LoadRandomSequence()`, using `GetRandomValue()`
#5393
pull/5399/head
Ray
1 month ago
parent
19a1683641
commit
91ac3cc707
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/rcore.c
+ 1
- 1
src/rcore.c
View File
@ -1765,7 +1765,7 @@ int *LoadRandomSequence(unsigned int count, int min, int max)
for
(
int
i
=
0
;
i
<
(
int
)
count
;
)
{
value
=
p">(
rand
(
)
%
(
abs
(
max
-
min
)
+
1
)
+
min
)
;
value
=
n">GetRandomValue
(
min
,
max
)
;
dupValue
=
false
;
for
(
int
j
=
0
;
j
<
i
;
j
+
+
)
Write
Preview
Loading…
Cancel
Save