# Requests by percentages in k6 In [[k6 (tool)|k6]], you may sometimes want to `GET` a different version of a URL based on percentages. For example, consider a requirement that a script must fetch the status of three different clients, and each one must be used a certian percentage of the time: - 50% of the time, GET `/status/clientA` - 35% of the time, GET `/status/clientB` - 15% of the time, GET `/status/clientC` ```js import http from 'k6/http'; import { sleep, check } from 'k6'; import { randomIntBetween } from "https://jslib.k6.io/k6-utils/1.0.0/index.js"; export const options = { duration: '1m', vus: 1, }; export default function () { const domain = 'https://test.k6.io'; let randomNumber = randomIntBetween(1,100); console.log('Random number is ' + randomNumber); let client; if (randomNumber < 51) { client = 'clientA' } else if (randomNumber < 86) { client = 'clientB' } else { client = 'clientC' } let res = http.get(domain + '/status/' + client); console.log('Client selected: ' + client); sleep(randomIntBetween(1,5)); } ```