Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
a0581cca
Commit
a0581cca
authored
Jan 23, 2019
by
Rémi Verschelde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Revert "Update random_pcg.h""
This reverts commit
6f704c33
. Sorry about this, this was a test and not meant to be pushed to master. :/
parent
2a45b298
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
random_pcg.h
core/math/random_pcg.h
+2
-2
No files found.
core/math/random_pcg.h
View file @
a0581cca
...
...
@@ -50,8 +50,8 @@ public:
void
randomize
();
_FORCE_INLINE_
uint32_t
rand
()
{
return
pcg32_random_r
(
&
pcg
);
}
_FORCE_INLINE_
double
rand
f
()
{
return
(
double
)
rand
()
/
(
double
)
RANDOM_MAX
;
}
_FORCE_INLINE_
float
rand
d
()
{
return
(
float
)
rand
()
/
(
float
)
RANDOM_MAX
;
}
_FORCE_INLINE_
double
rand
d
()
{
return
(
double
)
rand
()
/
(
double
)
RANDOM_MAX
;
}
_FORCE_INLINE_
float
rand
f
()
{
return
(
float
)
rand
()
/
(
float
)
RANDOM_MAX
;
}
double
random
(
double
from
,
double
to
);
float
random
(
float
from
,
float
to
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment