Download

I can't find Random function on blueprint

Hye,

After some research, I found that “Random” is with the Kismet Math Library. But I don’t know how to add it, the answer is anywhere…

Thanks.

Random what?

Random int Random float Random vector…

https://docs.unrealengine.com/en-US/API/Runtime/Engine/Kismet/UKismetMathLibrary/index.html

https://learn.unrealengine.com/home/dashboard

1 Like

Are you talking blueprint or C?

" I can’t find Random function on blueprint"

Blueprint ^^

Right mouse button on blueprint main screen. Search box will appear - type random
And visit the learn site, its great.

1 Like

Yeah I know, but I can’t find it with the right click

Capture d’écran (28)|623x470

Where are you? What kind of actor are you in? I notice it only says things about particles…

In a material

https://learn.unrealengine.com/home/dashboard

1 Like

I would like to put a random noise texture with a random vector

You’re confusing me…
“Right mouse button on blueprint main screen. Search box will appear - type random
And visit the learn site, its great.”
And now “Epic Games

Everything you need is there.

Right you wont find them in there… :slight_smile:

That’s not a blueprint, it’s a material.

What are you trying to do?

1 Like

You can put random noise in, just look for the textures in the content browser. What do you want to do with the vector?

Screenshot_1

Indeed… ^^’

I would like to get a random vector to put it in a noise texture. The texture is going to be change a bit, combine with a vertexNormalWS and put into world displacement (on my world material).
The material is on a spheric mesh.

That’s because I want to create 1 unique world for each game. So I need a random noise in order to displace my sphere every games ^^

The random noise is all you need to displace your mesh. You do have vectors in materials, but they don’t work like vectors in blueprint.

I think the problem is that a bumpy mesh, is a bumpy mesh. It’s not really a different world.

If you randomly chose to show them a ball or cube or pyramid etc. That would be different…

EDIT: Sorry. Tell me if you can’t get it working and I’ll take a look.

2 Likes