Skip to main content
The Deno 2 Release Candidate is here
Learn more
method RagfairPriceService.prototype.randomiseOfferPrice
Re-export
import { RagfairPriceService } from "https://deno.land/x/sptaki@1.2.0/services/mod.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