# Front template has a problem: Found '⁨{{@rand}}⁩', but there is no field called '⁨@rand⁩'

**URL:** <https://forums.ankiweb.net/t/front-template-has-a-problem-found-rand-but-there-is-no-field-called-rand/49059>\
**Category:** Help\
**Created:** [September 5, 2024, 4:14pm UTC](https://forums.ankiweb.net/t/front-template-has-a-problem-found-rand-but-there-is-no-field-called-rand/49059 "2024-09-05T16:14:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kettu](https://avatars.discourse-cdn.com/v4/letter/k/9de053/32.png) [@Kettu](https://forums.ankiweb.net/u/Kettu)\
**Post date:** [September 5, 2024, 4:14pm UTC](https://forums.ankiweb.net/t/front-template-has-a-problem-found-rand-but-there-is-no-field-called-rand/49059/1 "2024-09-05T16:14:18Z")

</div>

Hey, everybody!  
Loaded another person’s deck, and instead of cards this error appears. I couldn’t solve the problem on my own, so I’m addressing here.

 ![Anki. Prob](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/f/3/f35290b9f7a8a31981f3c4afd79358586318b01d.png)

---

<div class="post-metadata">

**Author:** ![sorata](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/sorata/32/34115_2.png) [@sorata](https://forums.ankiweb.net/u/sorata)\
**Post date:** [September 5, 2024, 6:15pm UTC](https://forums.ankiweb.net/t/front-template-has-a-problem-found-rand-but-there-is-no-field-called-rand/49059/2 "2024-09-05T18:15:55Z")

</div>

Is there a field with a similar name? It also seems `{{@rand}}` is in a JS script so not sure if you should just remove it, but can try simply deleting that part and that only.

---

<div class="post-metadata">

**Author:** ![Kettu](https://avatars.discourse-cdn.com/v4/letter/k/9de053/32.png) [@Kettu](https://forums.ankiweb.net/u/Kettu)\
**Post date:** [September 6, 2024, 9:30am UTC](https://forums.ankiweb.net/t/front-template-has-a-problem-found-rand-but-there-is-no-field-called-rand/49059/3 "2024-09-06T09:30:16Z")

</div>

Unfortunately, it doesn’t help

---

<div class="post-metadata">

**Author:** ![sorata](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/sorata/32/34115_2.png) [@sorata](https://forums.ankiweb.net/u/sorata)\
**Post date:** [September 6, 2024, 10:26am UTC](https://forums.ankiweb.net/t/front-template-has-a-problem-found-rand-but-there-is-no-field-called-rand/49059/4 "2024-09-06T10:26:10Z")

</div>

What did you try? Did you remove or replace @rand and it didn’t work (as in showed the same or a different error)?

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [September 6, 2024, 2:08pm UTC](https://forums.ankiweb.net/t/front-template-has-a-problem-found-rand-but-there-is-no-field-called-rand/49059/5 "2024-09-06T14:08:45Z")

</div>

Is this a publicly shared deck, or something you received from a friend? Have you considered talking to the deck author about this?

---

<div class="post-metadata">

**Author:** ![Kettu](https://avatars.discourse-cdn.com/v4/letter/k/9de053/32.png) [@Kettu](https://forums.ankiweb.net/u/Kettu)\
**Post date:** [September 8, 2024, 3:33pm UTC](https://forums.ankiweb.net/t/front-template-has-a-problem-found-rand-but-there-is-no-field-called-rand/49059/6 "2024-09-08T15:33:21Z")

</div>

I tried moving rand, deleting lines of code, but it didn’t help. Some effect was achieved, but I don’t understand anything about it, so I can say that it didn’t solve the problem.  
In general, not so relevant anymore, I found a working deck from another person. The interest in somehow fixing this one has passed.

---

<div class="post-metadata">

**Author:** ![Kettu](https://avatars.discourse-cdn.com/v4/letter/k/9de053/32.png) [@Kettu](https://forums.ankiweb.net/u/Kettu)\
**Post date:** [September 8, 2024, 3:35pm UTC](https://forums.ankiweb.net/t/front-template-has-a-problem-found-rand-but-there-is-no-field-called-rand/49059/7 "2024-09-08T15:35:32Z")

</div>

This is publicly shared deck, almost the only one of its kind. But I managed to find a working copy on github somewhere

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [September 8, 2024, 4:01pm UTC](https://forums.ankiweb.net/t/front-template-has-a-problem-found-rand-but-there-is-no-field-called-rand/49059/8 "2024-09-08T16:01:33Z")

</div>

I’m glad you were able to get around it. You should make sure to leave feedback for the deck author of the non-working deck, so that other users will know about the issue.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [October 8, 2024, 4:01pm UTC](https://forums.ankiweb.net/t/front-template-has-a-problem-found-rand-but-there-is-no-field-called-rand/49059/9 "2024-10-08T16:01:42Z")

</div>

Closed on October 8, 2024, 4:01pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
