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
64e584a9
Unverified
Commit
64e584a9
authored
Jan 07, 2019
by
Calamander
Committed by
GitHub
Jan 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update random_pcg.h
little fix to function types
parent
e4b02513
Hide 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 @
64e584a9
...
...
@@ -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