Answer the question
In order to leave comments, you need to log in
How to display a variable in a picture Python?
I'm trying to make a bot for VKontakte and I want to make a profile in a picture, not text. How to display a variable in an image?
Answer the question
In order to leave comments, you need to log in
let arr = .reduce(function(a, b) {
return a.concat(b);
});
var result = [];
while(result.length < 6) {
let sum = Math.floor(Math.random() * (arr.length - 0)) + 0;
if(result.indexOf(arr[sum]) == -1) { // Проверяем
result.push(arr[sum]);
}
}
arr
. I.e:let arr = .reduce(function(a, b) {
return a.concat(b);
});
let unique = arr.filter((val, i) => arr.indexOf(val) == i);
var result = [];
while(result.length < 6) {
let sum = Math.floor(Math.random() * (unique.length - 0)) + 0;
if(result.indexOf(unique[sum]) == -1) { // Проверяем
result.push(unique[sum]);
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question