Похожие чаты

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 ответов

3 просмотра
⁣-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

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

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

Всем привет! Подскажите. Я написал приложение на Delphi 10.2 Tokyo под Windows 10. И передо мной стал вопрос о том чтобы сделать это приложение кроссплатформенным (под Linux и...
Дмитрий Завгородний
24
The main vulnerable points of #Monero There is an axiom in computer security that says that a system is as safe as its most vulnerable point. Monero is a #privacy blockchain ...
LiberLion
15
Nothing is pivoting, but merely expanding reach is all. We are bringing in a credible resource that can help outreach in this area that has been mentioned. This does not mean ...
Carl Parker
9
⚡В два раза дороже: созданное за счет госсубсидий тепловое хозяйство приведет к сумасшедшему росту цен Во многих регионах Эстонии жителям грозит безудержный рост цен, котор...
Alöscha
28
На машинку с процем Атом 270 и память 1 Gb не получается накатить генту, беру исошник устанавливаю на на USB потом пытаюсь загрузится В итоге получаю это: Enterring rescue ...
Владимир Кариков
18
Вопросик. Есть контора с 100500 серверами в домене. На каждом прописаны свои админы под задачу. Есть группа универсалов у которых админ на все 100500 серверов. Иногда нужен до...
Alexey D. Filimonov
13
Кстати а покупал кто-нибудь ЭЦП для подписи кода? А то у меня на некоторых компах и ОС иногда SmartScreen винды программу за вирус принимал. Если купить такую ЭЦП и подписыват...
Дмитрий Завгородний
15
De "halving" (of "halvering" in het Nederlands) is een belangrijk onderdeel van het mechanisme van Bitcoin en beïnvloedt hoe nieuwe bitcoins worden gecreëerd en in omloop gebr...
MP
15
Запускаю SIMD на Delphi 11 CE пишет: Exception class name: EJclError Exception message: Function not found: kernel32.dll.GetEnabledExtendedFeatures (0014763C){Jcl280.bpl } [7...
Александр Смоляков
10
@Agorajix @defimati and Brillion's wallet??? a lot of problems now, it's not looking good at the moment... A lot of people are disappointed, they need to resolve the problems...
Alex
14
Карта сайта