How do i store vector2 values in dictionary?

in my cards game i’m making the opponent ai and i have stumbled across this problem.i have no idea how this works in godot. please help

	var predefinitedpos1 = Vector2(285,288),
	var predefinitedpos2 = Vector2(421,190),
	var predefinitedpos3 = Vector2(285,268),
	var predefinitedpos4 = Vector2(421,261),
]

try this:

	var d: Dictionary = {
		"foo": Vector2(0, 100),
		"bar": Vector2(50, 150)
	}
	d["first"] = Vector2(100, 200)
	d["second"] = Vector2(200, 300)
	print (d)

thanks but that doesn’t work for me

Please be more specific. What doesn’t work? How does your code look? What Error messages do you get?
Otherwise perhaps the docs help: Dictionary — Godot Engine (stable) documentation in English

it’s fine i do not have much time this is for a game jam. and plus my code is of 300+ lines it would become difficult for both of us. but what i was looking to do was to make a table so i can generate a random number series 1,2,3,4 making sure it doesn’t repeat and place them to the positions assigned by calling the table TableofPositions[1] or something like that

Wouldn’t you be better off with an Array then instead of a Dictionary

	var p: Array = [
		Vector2(0, 100),
		Vector2(100, 200),
		Vector2(200, 300)
	]

and access them via incides 0 to 2:

	var index: int = random...
	pos = p[index]

For creating the sequence of random numbers, I would recommend the Fisher-Yates shuffle.

that is usefull in many cases but my game has a rule that the same moves won’t be repeated which makes things even more complicated. Anyways i better get back to work