The tag has no wiki summary.

learn more… | top users | synonyms

12
votes
2answers
470 views

How to include random images?

I'd like to make LaTeX pick one image file randomly from a series of eight images, and include it. I found that ''lcg'' package can generate random numbers: \usepackage{lcg} ...
8
votes
1answer
566 views

Accessing randomly selected problems via the probsoln package

I have two datasets, each containing problems dealing with a specific topic. These problems are stored in external files (again, one file per topic) and loaded into the datasets in a random order. I ...
13
votes
1answer
606 views

TikZ: decoration - random steps: how to get twice exactly the same shape?

I'm creating a beamer presentation, in which I use TikZ. I am making a figure, on which I would like to highlight something (using \only<> command). My figure contains an ellipse that is ...
10
votes
4answers
774 views

How to randomly shuffle a sliced image?

I have no idea to shuffle the following grids of a sliced image. How to do this in (La)TeX or PostScript level? \documentclass[pstricks,border=12pt]{standalone} \usepackage{multido} ...
4
votes
1answer
162 views

Random scale of square makes a rectangle

Why does this code generates a rectangle, not a square? \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[scale=rnd] (0,0) rectangle (1,1); ...
16
votes
2answers
781 views

Filling white space in title page with random numbers or a text

Is it possible to fill all white space in this template with numbers or a text? %---------------------------------------------------------------------------------------- % PACKAGES AND OTHER ...
7
votes
2answers
964 views

Automatically generated BINGO cards

I am trying to automatically generate a series of BINGO cards. So, I need a 5 x 5 table with square cells that allow text wrapping. I also want to randomly assign a word to each cell from a "bank" ...
4
votes
2answers
281 views

Banded matrix with random entries

What is the optimal way to get banded matrices with random entries in LaTeX? By random, I mean the following: It should give me different entries after every compilation.
10
votes
1answer
229 views

Table-aligned, randomized, repeatingly smaller icons for eyesight-chart

My daughter needs to train her eyesight in accordance to the LEA eyesight chart tests. I have manually created a new chart for her, but it really takes a long time randomzing the four icons and ...
6
votes
1answer
687 views

Generating a worksheet

My objective is to be able to generate worksheets in categories like: Laws of Indices Simultaneous Linear equations and Quadratic equations When I say generate is to generate for example 20 ...
9
votes
2answers
2k views

Defining variables in TikZ

I'm trying to define random variables - for example to draw some random points of the form (r,r) when r is a random number. I tried \def\myrandomnumber{rnd}, but that seems to give me a new random ...
4
votes
1answer
655 views

Creating random problems by using rand option

I would like to generate random questions based on a random integer input. I have tried he code from a site online and tweaked it so that it generates more than one random problem but evidently it ...
16
votes
2answers
2k views

Generate random numbers with a specific font

My objective is to create a table or some form of environment as shown in the figure below. The numbers should be randomly generated every time you compile and have the font shown below. Is ...
5
votes
1answer
1k views

Naming coordinates in a foreach loop

I have the following problem: I am using beamer together with tikz, and I want to use some random points in a drawing which is shown over a couple of slides. If I use the normal random method, the ...
10
votes
2answers
507 views

randomize the order of text lines in a .tex file

I need to create an environment (let's call it randomizer) that randomly changes the order of its lines, which may contain any text or latex commands (assume without verifying that they don't break ...
8
votes
1answer
718 views

Storing the result of a random number in tikzpicture

I am drawing a surface composed of rigid "molecules" composed of three spheres each. I want to add some randomness to the surface. I have created this code: \begin{tikzpicture} \def\nuPi{3.1459265} ...
6
votes
3answers
314 views

Random form letter text

I want to randomize some of the text contained within some letters. For e.g.: \random{Dear \name,}{Hello \name,}{Greetings \name,}{Hi \name,}{To \name,} \random{You are invited to}{You are welcome ...
43
votes
2answers
2k views

The effect of the anonymous letter

I'm trying to create an effect as if the text is made up of letters cut from magazines and newspapers and even the same words had different style. It is necessary that each letter in the word had a ...
11
votes
7answers
3k views

How to create a random math problem in LaTeX?

I want to create a math problem-solution sheet. The coefficients a, b, c must be assigned on the fly at random so the generated pdf will show a numeric quadratic equation rather than a symbolic ...
8
votes
1answer
946 views

Conditional using non-integer numbers

I am trying to generate fractals using affine transformations. I need to generate a random number in the interval (0,1), and depending on the value of this random number choose a function to ...
3
votes
2answers
760 views

How to convert number to length?

I'm trying to generate a "word cloud" by using \mboxes with random spaces around words. In the code below I've removed stuff that change the font size, and I've replaced \mboxes by \frameboxes for ...