Update rcore.c
This commit is contained in:
parent
87f26c845c
commit
5c79c5a2ec
1 changed files with 2 additions and 2 deletions
|
@ -1725,14 +1725,14 @@ int *LoadRandomSequence(unsigned int count, int min, int max)
|
||||||
#if defined(SUPPORT_RPRAND_GENERATOR)
|
#if defined(SUPPORT_RPRAND_GENERATOR)
|
||||||
values = rprand_load_sequence(count, min, max);
|
values = rprand_load_sequence(count, min, max);
|
||||||
#else
|
#else
|
||||||
if (count > (abs(max - min) + 1)) return values;
|
if (count > ((unsigned int)abs(max - min) + 1)) return values;
|
||||||
|
|
||||||
values = (int *)RL_CALLOC(count, sizeof(int));
|
values = (int *)RL_CALLOC(count, sizeof(int));
|
||||||
|
|
||||||
int value = 0;
|
int value = 0;
|
||||||
bool dupValue = false;
|
bool dupValue = false;
|
||||||
|
|
||||||
for (int i = 0; i < count;)
|
for (int i = 0; i < (int)count;)
|
||||||
{
|
{
|
||||||
value = (rand()%(abs(max - min) + 1) + min);
|
value = (rand()%(abs(max - min) + 1) + min);
|
||||||
dupValue = false;
|
dupValue = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue