Generate a new Random.Range on function call?

Hi this is my first time using the forum. I’m trying to generate a new Random.Range every time my function is called. I’m unsure why my code is not working and any help would be greatly appreciated!

public float priceRange;

public void UpdatePrices()
{
priceRange = new Random.Range(-150f, 300f);
}

I’m not at my Unity machine, but I think you perhaps need the following…

public float princeRange;

public void UpdatePrices()
{
    priceRange = Random.Range(-150f, 300f);
}

Simply put, you shouldn’t have the “new” keyword in there…