python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Loop through dictionary with selecting random values working unproperly
This script should use a while loop to iterate through the dictionary and grab a random state and capital, assigning each to a variable. The user is then asked what the capital of the randomly picked ...
Mr.Proper
Votes: 0
Answers: 2
Applying a tolerance when using 'ORDER BY RAND()' in MySQL?
I have a MySQL table of companies, each company has a popularity score, (the higher the integer, the more popular the company). I'm wanting to select 10 random companies then order by most popular to ...

Adam
Votes: 0
Answers: 0
R: Loops Containing Lists and Data Frames
I am working with the R programming language.
I wrote the following code for a loop that randomly sample integers (between 1-10) 5 times:
results <- list()
for (i in 1:5) {
n_1_i = sample(1:10, 1...

stats_noob
Votes: 0
Answers: 1
Random background video on page load with html/js
Is worked my way through all responses but i just can't get my head around how to make this work.
I want to have a selection of 4 background videos which random on load.
So far, this is what i got.
...
user18194401
Votes: 0
Answers: 1