Skip to main content
Deno 2 is finally here 🎉️
Learn more
method RagfairPriceService.prototype.randomiseOfferPrice
import { RagfairPriceService } from "https://deno.land/x/sptaki@1.2.0/services/RagfairPriceService.d.ts";

Multiply the price by a randomised curve where n = 2, shift = 2

Parameters

existingPrice: number

price to alter

rangeValues: MinMax

min and max to adjust price by

Returns

number

multiplied price