Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Need to generate random number after time interval
Home
Education
Need to generate random number after time interval
asked
Mar 2, 2022
in
Education
by
JackTerrance
I'm using my own security form or you can say security challenge question. But the problem is that I have change that question daily manually. Is there any way to change it automatically after every 5 minutes? Here is code of this: if (!$_POST['security_question'] || $_POST['security_question'] != '**PUT HERE YOUR QUESTION?**' ) { $errors[] = t('You must answer security question correctly!'); } '.t('Security Question:').' **PUT HERE YOUR QUESTION?**
So I want to change the link "PUT HERE YOUR QUESTION?" in both case randomly after some time interval. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)
phpsecurity
1
Answer
0
votes
answered
Mar 2, 2022
by
JackTerrance
I Got The answer and it's working perfectly..!! Thanks to every one // Create a random number between 0 and 9999 every 5 minutes function random() { $interval = 60*5; // Interval in seconds srand(floor(time() / $interval)); echo rand(0, 9999); }
Related questions
0
votes
Q: Disabling SecFilterScanPOST in htaccess don't do anything?
I posted this : PHP 5.2.x: $_POST is empty when any field has value of "drop anywords from ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Feb 19, 2022
in
Education
by
JackTerrance
phpsecurity
htaccesspost
0
votes
Q: Which is the function that calls another function after a time interval?
Which is the function that calls another function after a time interval? (a) setTimeout() (b) setTime( ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Oct 23, 2021
in
Education
by
JackTerrance
essential-javascript-interview-questions
javascript-interview-questions
javascript-interview-questions-and-answers
javascript-questions-for-practice
java-script-mcq-quiz
javascript-quiz-
javascript-multiple-choice-questions
javascript-mcq-with-answers
0
votes
Q: Explain Which class is used to generate random number?
Which class is used to generate random number? (a) java.lang.Object (b) java.util.randomNumber (c) java. ... Utility Classes of Java Select the correct answer from above options...
asked
Feb 24, 2022
in
Education
by
JackTerrance
java
util
0
votes
Q: Which class is used to generate random number?
Which class is used to generate random number? (a) java.lang.Object (b) java.util.randomNumber (c ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Oct 24, 2021
in
Education
by
JackTerrance
essential-javascript-interview-questions
javascript-interview-questions
javascript-interview-questions-and-answers
javascript-questions-for-practice
java-script-mcq-quiz
javascript-quiz-
javascript-multiple-choice-questions
javascript-mcq-with-answers
0
votes
Q: Generate sub numbers from number (remove last number each time)
This is my function: def sub(number): tmp = [] tmp.append(number) while len(str(number)) > 1: tmp.append( ... do this in the python? Select the correct answer from above options...
asked
Jan 9, 2022
in
Education
by
JackTerrance
data-science
python
0
votes
Q: Trying to update a slideshow with time interval
I'm looking to update a site for some friends with a pretty simple request (to change the time on each slide ... and the .php from the template that populates the slideshow:...
asked
May 14, 2022
in
Education
by
JackTerrance
javascriptcss
0
votes
Q: On a particular day, at a crossing in a city, the various types of 24 vehicles going past during a time interval were observed under:
On a particular day, at a crossing in a city, the various types of 24 vehicles going past during a time interval ... is a two-wheeler? Select the correct answer from above options...
asked
Nov 23, 2021
in
Education
by
JackTerrance
probability-interview-questions
probability-questions
probability
class-9
0
votes
Q: C++ How to generate 10,000 UNIQUE random integers to store in a BST?
I am trying to generate 10,000 unique random integers in the range of 1 to 20,000 to store in a ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Apr 12, 2022
in
Education
by
JackTerrance
c
randombinary-search-treeunique
0
votes
Q: C++ How to generate 10,000 UNIQUE random integers to store in a BST?
I am trying to generate 10,000 unique random integers in the range of 1 to 20,000 to store in a ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Apr 10, 2022
in
Education
by
JackTerrance
c
randombinary-search-treeunique
0
votes
Q: How do I generate a list of n unique random numbers in Ruby?
This is what I have so far: myArray.map!{ rand(max) } Obviously, however, sometimes the numbers ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Mar 23, 2022
in
Education
by
JackTerrance
ruby
0
votes
Q: How to generate this kind of random curves?
Is it possible to generate this kind of random curves? I've tried IMagick bezier curves (see http:/ ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Feb 28, 2022
in
Education
by
JackTerrance
phpalgorithmimagemagick
0
votes
Q: Explain Which method is used to generate boolean random values in java?
Which method is used to generate boolean random values in java? (a) nextBoolean() (b) randomBoolean() (c) ... Utility Classes of Java Select the correct answer from above options...
asked
Feb 24, 2022
in
Education
by
JackTerrance
java
util
0
votes
Q: ________ generate random Normal variates with a given mean and standard deviation.
________ generate random Normal variates with a given mean and standard deviation. (a) dnorm (b) rnorm (c) ... of R Programming Select the correct answer from above options...
asked
Feb 13, 2022
in
Education
by
JackTerrance
r
programming
p
0
votes
Q: Excel: How to generate real random numbers having as low and high 2 real numbers?
How to generate real random numbers having as low and high 2 real numbers? I want random numbers between: ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Feb 7, 2022
in
Education
by
JackTerrance
interview-question-answer
0
votes
Q: Excel: How to generate real random numbers having as low and high 2 real numbers?
How to generate real random numbers having as low and high 2 real numbers? I want random numbers between: ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Feb 7, 2022
in
Education
by
JackTerrance
interview-question-answer
...