random targeting issues

Hi,

I am new to unity and coding, but trying to learn as I go. I have made a basic game with unity 3d but I am stuck with a part.

it’s a simple click and shoot game, I have the ray cast in place and it fires where it’s meant to but I want to add in a random variable. so based on level count it adds a random value from a range to the x and y coordinate’s so it changes the final target point

I’m not sure if this is even possible but I hope it is

any help will be great

Random.Range should work. Let us know if you have any issues.

im stuck with how to add the random range to the hit point from the raycast

Can you post your code / a screenshot of your game? I’d need to know what perspective and angles you’re dealing with to help further.