Похожие чаты

Https://Type.Fit/Api/Quotes How can I get the "text" here randomly? When

I press a button it will bring up a random quote.

16 ответов

14 просмотров
⁣-Ayyıldız Автор вопроса

It should not bring the same quote again until the series is finished.

const pick = list => list[Math.floor(Math.random() * list.length];

⁣-Ayyıldız Автор вопроса
Thomas
const pick = list => list[Math.floor(Math.random...

https://medium.com/@omar.rashid2/fisher-yates-shuffle-a2aa15578d2f I want the transactions to be as fast as possible. After doing some research, I saw that there is a method called fisher yates.

Thomas
You don't need to shuffle

I want to control multiple video tags with some chat messages divs all based on a global current_time var with a seekbar what should I do?

Стикер

⁣-Ayyıldız Автор вопроса

i did i did. for some reason i wanted to copy it into an array and shuffle it but i got it done without shuffling it.

⁣-Ayyıldız Автор вопроса

why can't i put this here, it gives "undefined" error

Thomas
show error

let cat=data.targetGroup.reduce((acc,item)=>{ let angle="angle"; let crop="cropping" acc[angle]=[...acc.angle,...item.properties.angle]; acc[crop]=[...acc.cropping,...item.properties.cropping]; return acc; },{angle:[],cropping:[]}); better way to write this code quality

⁣-Ayyıldız Автор вопроса

doesn't write, if you want to review: https://codepen.io/3fs/project/editor/DeyqRw (api.js)

⁣-Ayyıldız Автор вопроса
Thomas
Yeah there's no reason to shuffle here

When taking random quotes, sometimes the same quote appears twice. So is it necessary to shuffle it up? with fisher yates vs

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта