From d396da7cea6295a24a387626652b9e64c7cf4617 Mon Sep 17 00:00:00 2001 From: ghkkk090 Date: Tue, 6 Sep 2022 10:21:10 +0700 Subject: [PATCH] more randomizing --- src/modules/cars.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/modules/cars.ts b/src/modules/cars.ts index 0ebafe3..8eb9a02 100644 --- a/src/modules/cars.ts +++ b/src/modules/cars.ts @@ -441,8 +441,14 @@ export default class CarModule extends Module { } } + // Randomize regionId + let randomRegionId: number = 18; + for(let i=0; i<5; i++) + { + randomRegionId = Math.floor(Math.random() * 47) + 1; + } + // Default car values - let randomRegionId = Math.floor(Math.random() * 47) + 1; let carInsert = { userId: user.id, manufacturer: body.car.manufacturer!,