How do i save a random integer as a variable and display it


i have made some code that selects a random integer between 0 and 16 and saved it as a variable called Random Num 2. i then inputted Random Num 2 into a get text node expecting it to display Random Num 2 in the text box, but it only displays 0. ive tried multiple things that dont seem to work so any help would be really appreciated

You haven’t called the code

1 Like

thanks for the reply! im a bit of a newbie so excuse the silly question but how would i go about doing that?

just call event begin play and plug it in to that

This topic has been moved from International to Programming & Scripting: Blueprint.

When posting, please review the categories to ensure your topic is posted in the most relevant space. Hopefully, this category change will help you (or other devs!) to get an answer.

Good luck and happy developing :slight_smile:

1 Like

In the widget main event window

image

IT WORKED! thank you all so much i feel silly now because it was so obvious

1 Like