Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DavidHDev/react-bits
/ seededRandom
Function
seededRandom
src/tools/texture-lab/utils.js:246–249 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
244
const
data = imageData.data;
245
246
const
seededRandom = seed => {
247
const
x = Math.sin(seed) * 10000;
248
return
x - Math.floor(x);
249
};
250
251
switch (
type
) {
252
case
'paper'
: {
Callers
1
generateProceduralTexture
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected