Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

10 random questions use python and SQL

SELECT COUNT(*) FROM table; -- Use this to determine rand_low and rand_high

  SELECT *
    FROM table
   WHERE frozen_rand BETWEEN %(rand_low)s AND %(rand_high)s
ORDER BY RAND() LIMIT 1000
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #random #questions #python #SQL
ADD COMMENT
Topic
Name
9+5 =